function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Force User.ax1263Force User.ax1263 

How to get OPEN ID TOKEN using Salesforce Mobile SDK

Goal is to authenticate from a native iOS app into Salesforce using Mobile SDK (using SFAuthenticationManager) and then obtain the id_token (open id token) that I can use to conenct to a third party service that's configured to work with openid authenticated clients.

I can do teh oAuth using the Mobile SDK  and I can get the oAuth Access token from SFOAuthCredentials object but I don't know how to get the openid token (id_token)

I know I can get this using the traditional oAuth workflowusing the URL shown below, but I am tryingt to use Mobile sdk for the authentication.
https://login.salesforce.com/services/oauth2/authorize?response_type=token+id_token&client_id=xxxxx&scope=openid. 

Is there anyway to get the openId token after I authenticate using mobile SDK.. something like this.. 
https://login.salesforce.com/services/oauth2/token?response_type=token+id_token&grant_type=refresh_token&client_id=xxxxxx&client_secret=111111&refresh_token=yyyyyyyyy
smobilesmobile
Did you figure this out? I also have a simialr use case 
May need to modify the SDK
AjGuptaAjGupta
Have you figured out this? I am similar requirement to get the Id Token.