Access application after authenticated to Okta via API Skip to main content
https://support.okta.com/help/answers?id=9062a000000dfpdqa4&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Wade PerrigoWade Perrigo 

Access application after authenticated to Okta via API

I have an application I developed that uses Okta for authentication.  Once a user authenticates to Okta, can I use their token to programmatically access other Okta-enabled apps via API?

IE:  My app authenticates user to Okta, I need to obtain salesforce data within my application.  Can I use the users token to request access to salesforce?  If so, how?
Bogdan MusatBogdan Musat (Okta, Inc.)
Hi Wade, 

You should be able to use their token,Once a session token is obtained, it can be passed into the OpenID Connect authorize endpoint in order to get an Okta session cookie. Executing this flow will set a cookie in the end-user’s browser and then redirect them back to the redirect_uri that is passed into the request.
I'll go ahead and attach a link that will go explain this in detail.

http://developer.okta.com/use_cases/authentication/session_cookie#retrieving-a-session-cookie-by-visiting-a-session-redirect-link
Hemant ShuklaHemant Shukla
Hello Bogdam,

Can you please be more descriptive? I am also dealing with exact same use case. Our app doesn't have UI involved so its not browser related. 

What I need is, once user is authecticated to OCTA via primary authentication API and get the session token, what would be the next step or API calls which would be require to get an access of other pre-configured apps in Okta. Salesforce.com (Federated ID) app is a assigned application to Okta users. 

Thanks in advance!