subhan
subhan

Reputation: 53

Azure AD B2C iOS app token error

This is the configuration of my app:

enter image description here

This is the sign in and sign up policy

enter image description here

Now this is the error it gives me when I run the following code with my configurations: https://github.com/Azure-Samples/active-directory-b2c-ios-swift-native-msal

Error is given below:

Could not acquire token: Error Domain=MSALErrorDomain Code=-42105 "(null)" UserInfo={MSALErrorDescriptionKey=Token response is missing the access token}

enter image description here

Upvotes: 0

Views: 1633

Answers (1)

Daniel Krzyczkowski
Daniel Krzyczkowski

Reputation: 3157

Please check sample on my GitHub.

You have to add proper scope:

let kScopes: [String] = ["https://YOUR_TENANT/api/user_impersonation"]

Please let me know if you were able to solve the problem.

Upvotes: 1

Related Questions