.Net Core MVC Authentication & Role Based Authorization With Auth0
HTML-код
- Опубликовано: 5 окт 2023
- 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/rd003/DotnetAuth0
// auth 0 actions
role:
const assignedRoles = (event.authorization || {}).roles;
api.idToken.setCustomClaim('schemas.microsoft.com/ws/2008/..., 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:
👉 RUclips: / @ravindradevrani
👉 Twitter: / ravi_devrani
👉 GitHub: github.com/rd003
👉 Medium.com: / ravindradevrani
..........................................
Support my work:
You can buy me a coffee 🍵 : www.buymeacoffee.com/ravindra...
#aspnetcore #dotnet Наука
I was looking for these info for two days. Thanks
great tutorial, some things have changed since the video was created. The roles part requires some changes to work currently, but nothing that can't be solved by doing a little research.
Thank you so much for this.. much needed
that was helpful
Thank you
Legend!
Thank you so much for this video Mr Ravindra... it was so helpful. Please I wanted to ask, what's the name of your theme for visual studio? it's beautiful
I think , It was jellyfish.
Hy sir. How can we implement multiLevel authrization dynamiclly??
instead of changing roles in code and redeploy application .
Can we create dynamic and multilevel auth Admin => Qutation -> [Create ,update,deletet]
please sir make lecture on it. please
@ravindra devrani . I was followed step by step what you said above video.and am using visual studio 2022. .NETcore 6 but am facing below issue, could you please help me.
error is: "An unhandled exception occurred while processing the request.
ArgumentException: Options.ClientId must be provided (Parameter 'ClientId')
Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions.Validate()"
Sorry, I m bad at resolving bugs of viewers.I really want to help but i find it hard to relate the error until i have the actual code.
@@ravindradevrani may i know the version of visual studio code
I was using vs 2022 and .net 7 on that project
@@ravindradevrani we were seeking ur source code using github link you have mentioned in the caption. while clicking the github link , it was showing 404. Could you please provide the exact link, which was working fine.
Sorry, I Accidently put the private repo.
It is fine now. Click on the same link.
I do not recommend this tutorial
Why??