Skip to content

Comments

Graph SDK v5 update#30792

Merged
guardrex merged 2 commits intomainfrom
guardrex/blazor-groups-and-roles
Oct 20, 2023
Merged

Graph SDK v5 update#30792
guardrex merged 2 commits intomainfrom
guardrex/blazor-groups-and-roles

Conversation

@guardrex
Copy link
Collaborator

@guardrex guardrex commented Oct 20, 2023

Fixes #30789

Thanks @philip-reed! ... I'm literally just typing this straight in. Do you want to try it and let me know if it compiles and runs, or do you want me to do it instead and let you know how it turns out? I'm still focused on .NET 8 work; and if you were working with it anyway, I'd just trust that if it works for you that it will work for others. The transition from v4 to v5 is fairly straightforward. I trust the updates if the code will run for you ... and I'll publish this on that basis. It's not your fault tho if it 💥 later for someone else. I'd just need to work further with it in that case.


Internal previews

📄 File 🔗 Preview link
aspnetcore/blazor/security/webassembly/graph-api.md Use Graph API with ASP.NET Core Blazor WebAssembly
aspnetcore/blazor/security/webassembly/microsoft-entra-id-groups-and-roles.md ASP.NET Core Blazor WebAssembly with Microsoft Entra ID groups and roles

@guardrex
Copy link
Collaborator Author

... and I think I need another touch to this to mention that the way I'm doing the base URL now, it goes into the app settings file and is used here per ...

baseUrl = config.GetSection("MicrosoftGraph")["BaseUrl"];

@guardrex
Copy link
Collaborator Author

... oh ... and I need to crate a new pivot group for this. I forgot that there were THREE pivots on this group. We just need two here.

@guardrex
Copy link
Collaborator Author

Ok ... I fixed the pivot group, just two now (v4 and v5). I also call out that the base URL must be in the app settings file for this to work.

@guardrex guardrex self-assigned this Oct 20, 2023
@guardrex
Copy link
Collaborator Author

@philip-reed ... I'm going to go ahead (for now) and ...

Roll the 🎲🎲 and take my chances!

jack

I'll make an entry to check this explicitly when I get free of so much .NET 8 work that's on me right now.

If you try the new v5 code and it doesn't work, ping me here, on the issue you opened, or open a new issue from the Groups and Roles article.

For the other issue on scopes/permissions (delegated or scopes), that will need to sit for a bit. I'll get back to it as soon as I can 🏃‍♂️😅.

@guardrex guardrex merged commit f675c73 into main Oct 20, 2023
@guardrex guardrex deleted the guardrex/blazor-groups-and-roles branch October 20, 2023 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Example Code does not compile

1 participant