Рет қаралды 6,913
dotnet core mvc role based authorization with auth0
aspnet core mvc role base authorization with auth0
dotnet core mvc login
dotnet core mvc authentication with auth0
dotnet core auth0 authentication
📎Source code: github.com/rd0...
// auth 0 actions
role:
const assignedRoles = (event.authorization || {}).roles;
api.idToken.setCustomClaim('schemas.microso..., assignedRoles);
email:
if (!event.user.email_verified) {
api.redirect.sendUserTo('{domain}/v2/logout?returnTo={allowed_url_in_logout_with_encyption}&client_id={clientId}')
}
.......................................................................................
connect with me:
👉 KZbin: / @ravindradevrani
👉 Twitter: / ravi_devrani
👉 GitHub: github.com/rd003
👉 Medium.com: / ravindradevrani
..........................................
Support my work:
You can buy me a coffee 🍵 : www.buymeacoff...
#aspnetcore #dotnet