-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request] Docs On How to set up AAD B2C #136
Comments
Also interested in this doc. A starting point would be to follow Azure docs that shows how to use B2C with MSAL and Flask, then adapt it to use Is there anything else to keep in mind? |
I'd say follow the single-tenant steps I've already documented. MSAL works a bit different. If you document your steps you can post them here and we can either base the documentation on them, or help you debug. |
out of curiosity, what is the benefit of using the |
There are four things a FastAPI backend developer cares about when implementing Azure AD:
As for the official MSAL implementation, I believe it is sync and does not implement any FastAPI framework-specific features such as swagger authentication out of the box by using the dependency. 😊 |
Having been through this over the last few days, I found the demo project pretty useful. However, using the B2CMultiTenantAuthorizationCodeBearer I fell foul of invalid issuer. But the docs explain how to implement the issuer verification using the callable. Only problem is that the tid claim isn't available in the B2C token so validating issuer will fail as tid is None, followed by tid not being optional for User (the linked fix already addresses that). Finally, the last hurdle is when validate_iss is true, iss_callable is provided and multi tenant is true (which it is for the B2CMultiTenantAuthorizationCodeBearer) then there's a failure trying to obtain claims.get('tid'). |
Thank you @vjmadhal-silverstream for your return. There is a nice community using fastapi-azure-auth. PR seem coming very soon. I'm exited to see this feature available. |
This is now implemented, refer to the docs 👍 |
Thanks again @davidhuser 😊 |
Hello @davidhuser I get this error : The screen I see seem not exacty as yours : You can find here details about token request : POST And this is the response of the server : Any idea ? Thank you |
Hi, make sure the
this is due to reusing existing screenshots of SingleTenant or MultiTenant docs. Could maybe be removed. |
Hello,
AAD B2C seem to be supported but they is no documentation about how to configure it.
This documentation can save a lot of time.
Can some one add steps for B2C configuration ?
Thank you
The text was updated successfully, but these errors were encountered: