Reputation: 53
This is the configuration of my app:
This is the sign in and sign up policy
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}
Upvotes: 0
Views: 1633
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