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: https://github.com/rd003/DotnetAuth0
// auth 0 actions
role:
const assignedRoles = (event.authorization || {}).roles;
api.idToken.setCustomClaim('http://schemas.microsoft.com/ws/2008/..., assignedRoles);
email:
if (!event.user.email_verified) {
api.redirect.sendUserTo('https://{domain}/v2/logout?returnTo={allowed_url_in_logout_with_encyption}&client_id={clientId}')
}
.......................................................................................
connect with me:
👉 YouTube: / @ravindradevrani
👉 Twitter: / ravi_devrani
👉 GitHub: https://github.com/rd003
👉 Medium.com: / ravindradevrani
..........................................
Support my work:
You can buy me a coffee 🍵 : https://www.buymeacoffee.com/ravindra...
#aspnetcore #dotnet