https://github.com/vip32/blazorise-server-aad
blazor server+ aad demo
https://github.com/vip32/blazorise-server-aad
aad blazor csharp
Last synced: about 1 month ago
JSON representation
blazor server+ aad demo
- Host: GitHub
- URL: https://github.com/vip32/blazorise-server-aad
- Owner: vip32
- Created: 2020-07-29T10:55:14.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-15T20:17:59.000Z (over 5 years ago)
- Last Synced: 2025-03-24T20:43:37.011Z (about 1 year ago)
- Topics: aad, blazor, csharp
- Language: HTML
- Homepage: https://blazorise-server-aad.azurewebsites.net/
- Size: 894 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# blazorise-server-aad
+ Blazor Server
+ Blazorise: https://github.com/stsrki/Blazorise
+ AAD app roles: https://docs.microsoft.com/en-us/azure/architecture/multitenant-identity/app-roles
+ AAD + GraphApi + new Microsoft.Identity.Web: https://developer.microsoft.com/en-us/identity/blogs/how-to-build-a-blazor-web-app-with-azure-active-directory-authentication-and-microsoft-graph/
### Azure Setup
- create an AAD app registration (usualy done when creating new webapp in VS + Authentication)
- App registration generate clientsecret, put in appsettings.clientsecret
- App registration (setup roles), change manifest (JSON)
```
"appRoles": [
{
"allowedMemberTypes": [
"User"
],
"description": "Editors Have the ability to manage owned tasks.",
"displayName": "Editor",
"id": "d1c2ade8-98f8-45fd-aa4a-6d06b947c31f",
"isEnabled": true,
"lang": null,
"origin": "Application",
"value": "Editor"
},
{
"allowedMemberTypes": [
"User"
],
"description": "Administrator Have the ability to manage all tasks.",
"displayName": "Administrator",
"id": "d1c2ade8-98f8-45fd-aa4a-6d06b947c30f",
"isEnabled": true,
"lang": null,
"origin": "Application",
"value": "Administrator"
}
],
```
- Enterprise application, add User + assing Role
- Application, role available as claim (See Pages\Dashboard.razor)