Earlybyte / aad_oauth

Flutter Azure Active Directory OAuth Package
https://pub.dev/packages/aad_oauth
MIT License
92 stars 179 forks source link

Multi tenant and personal account. #318

Closed rvbatista closed 1 month ago

rvbatista commented 2 months ago

To allow login of multi tenant and personal accounts it's necessary to use a url without tenant id, otherwise we have error AADSTS50020 https://learn.microsoft.com/pt-br/troubleshoot/azure/entra/entra-id/app-integration/error-code-aadsts50020-user-account-identity-provider-does-not-exist

I tried to change my tenant id to common, but I believe that it's used in other parts of the code and still not working.

How it's the correct way to handle multi tenant and personal accounts?

rvbatista commented 1 month ago

after more tests change the tenant id to common worked.