Want to master Clean Architecture? Go here: bit.ly/3PupkOJ Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt Join a community of 1000+ .NET developers: www.patreon.com/milanjovanovic
@dotnetMasterCSharpАй бұрын
This is absolutely useful , thank you Milan!
@MilanJovanovicTechАй бұрын
@@dotnetMasterCSharp Glad you enjoyed it. This has been asked many times in the channel, so figured I'd cover it.
@thiagomatuАй бұрын
Nice, I work on an application that supports multiple authentication providers, but this your code is so much clean and easier to understand, thanks for sharing this Milan!
@MilanJovanovicTechАй бұрын
Glad it helped!
@ruekkartАй бұрын
Awesome! I was thinking about this for a multitenant app where each tenant can define its own auth provider, and this seems pretty helpful for that.
@MilanJovanovicTechАй бұрын
That's a great idea!
@AbdulHaseeb-vc5yvАй бұрын
Exactly what I needed. Thanks!
@MilanJovanovicTechАй бұрын
Awesome
@johncerpa3782Ай бұрын
Great video!
@MilanJovanovicTechАй бұрын
Thanks!
@kabal911Ай бұрын
Nice. I coincidentally did a pretty similar thing yesterday, where I wanted to support Cookie auth OR JWT auth. Took a bit of time to figure out the existence of AuthorizationBuiler and the DefaultPolicy
@MilanJovanovicTechАй бұрын
Nice work!
@timur2887Ай бұрын
Thank you!
@MilanJovanovicTechАй бұрын
You're welcome!
@cesarmauricioguerrerobatre591Ай бұрын
Amazing, it was a masterful explanation, what happens when I have several clients coming from keycloak and I need a certain client to access a certain number of enpoints, how do I do this?
@MilanJovanovicTechАй бұрын
Check out Keycloak authorization
@yaelsleman660Ай бұрын
Mr please.. I need to know what is you opinion about ABP framework and it is important to learn it?
@MilanJovanovicTechАй бұрын
Can't say
@nenzax2701Ай бұрын
Great Video, quick question, how do we tie a particular controller method to a specific jwttoken, ex: api/getusers should use keycloak, api/getadmins should use supabse
@MilanJovanovicTechАй бұрын
Authorize[AuthenticationSchemes: "custom_scheme_name"] I may have missed the exact syntax, but you can specify the scheme you want to use for a given controller/endpoint
@vichustephen447526 күн бұрын
@@MilanJovanovicTech But if I put both schemes , the middleware will make public cert verification requests to both endpoints . Need to use AddPolicyScheme with forward selector
@michxkowal4282Ай бұрын
Hi, do you know how to change the secret key while the API is running? I would like to be able to externally change secret in certain situations.
@MilanJovanovicTechАй бұрын
Update the ENV var
@thomasvlimaАй бұрын
And a multitenant API where each tenant has its own user pool?
@MilanJovanovicTechАй бұрын
But same auth provider?
@thomasvlimaАй бұрын
@MilanJovanovicTech yes. For example, using cognito, each tenant has its own user pool. And each user pool can have its own AD integration
@eduardoyupanquiАй бұрын
Wow, its no necessary add policyscheme to select the scheme to validate?
@MilanJovanovicTechАй бұрын
But you can if you want to
@binoypatel09Ай бұрын
Is Microsoft Entra ID work same way?
@MilanJovanovicTechАй бұрын
In what way do you mean?
@binoypatel09Ай бұрын
Let say I have a server app with the multiple different client apps, some apps use built-in authentication in the server app and some uses Microsoft Entra ID withe the same server app, so how am I going to accomplish this?
@mr-black_rock3216 күн бұрын
How to secure jwt access token in SPA (Single Page Application)
@MilanJovanovicTech6 күн бұрын
Same-site + Secure cookie
@mr-black_rock3215 күн бұрын
@@MilanJovanovicTech BFF can secure the access token ?