Azure-Samples / active-directory-b2c-ios-native-appauth

Demonstrates how you can use a third party library to build an iOS application in Objective-C that authenticates Microsoft identity users to our Azure AD B2C identity service.
http://aka.ms/aadb2c
MIT License
12 stars 8 forks source link

Doesn't getting claims in Refresh Access Token #4

Open nitisha1 opened 7 years ago

nitisha1 commented 7 years ago

Hi, I'm signin to B2C after that i call my api to create vendor and after that i call aquireTokenSilent to get the add claims in jwt Token.But unfortunately i'm not getting added claims in Access token.I checked user identity also it is also same as in sign. Any help what i'm missing? How to get the added claims by refreshing token?

gsacavdm commented 6 years ago

Custom claims are only supported in the id_token, not the access_token. Where are you wanting to use the customer claims? In the client app or the API app?

If in the client app, you should get them from the id_token. If in the API app, you should use the Azure AD Graph API to get them.