dudil / fastapi_msal

A FastAPI Plug-In to support authentication authorization using the Microsoft Authentication Library (MSAL)
MIT License
40 stars 20 forks source link

bug fix for single and multi tenant authority_url #34

Closed timovp closed 6 months ago

timovp commented 6 months ago

As mentioned in #33 :

Fixing the situation where the policy is MSALPolicies.AAD_SINGLE or MSALPolicies.AAD_MULTI and the authority_url overwritten by the new provisions for B2C policies.

Solved by early returns in the if-statements.

dudil commented 6 months ago

Thanks @timovp , I've actually missed that part 🙏