Skip to content
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

iOS MSAL : Authority validation is not supported for this type of authority #21

Open
alex-dokienko opened this issue Apr 6, 2023 · 2 comments

Comments

@alex-dokienko
Copy link

good day,

when I'm using my authorityUrl in this format
https://{tenant}.b2clogin.com/{tenant}.onmicrosoft.com/{policy}

I'm getting the error on policyTriggerInteractive callback
"MSALErrorDescriptionKey" : "Authority validation is not supported for this type of authority"
"MSALInternalErrorCodeKey" : Int64(-42008)
which stackoverflow say knowAuthorities should be properly set

But then I found that Microsoft guidelines says authority for iOS devices should be defined in this format
https://login.microsoftonline.com/tfp/{tenant}.onmicrosoft.com/{policy}

so when I changed to it (with some other tweaking to the plugin code to support new url format) I'm getting other error
[0] (null) "MSALErrorDescriptionKey" : "forbidden"
[1] (null) "MSALHTTPResponseCodeKey" : "403"
[3] (null) "MSALInternalErrorCodeKey" : Int64(-42007)

I don't know which format is required and which direction should I go
I'd really appreciate any feedback.

@redoz
Copy link

redoz commented Oct 19, 2023

@alex-dokienko Did you ever manage to figure this one out?

@alex-dokienko
Copy link
Author

@redoz
yes, I eventually resolved the issue, had to fork and managed to make it work with tfp url format
https://github.com/alex-dokienko/flutter_azure_b2c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants