<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007ThNvnCAFOkta Classic EngineAuthenticationAnswered2022-06-10T14:40:28.000Z2022-03-03T17:37:39.000Z2022-03-07T14:32:30.000Z

StevenS.51581 (Customer) asked a question.

Using the Okta sign-in widget to get user session status via Okta API in my own API

Hi,

 

What I'm trying to accomplish is this flow:

 

  1. Utilize the okta sign-in widget
  2. On successful response from the sign in widget grab the accessToken and email (or whatever is needed to accomplish what I'm thinking of trying)
  3. Make a call to my own API passing the accessToken and email
  4. In my API use that accessToken and email to make sure that user exists and the session is still active
  5. Depending on the response I receive in my API from Okta, continue with the logic I have or throw an error
  6. Return response to the browser and handle it accordingly

 

I've been trying to sign in with the widget and then utilizing what's returned to get a response from the Postman OpenID Connect collection and Sessions collection.

 

Any direction on how to handle this is appreciated.

 

Thank you!


StevenS.51581 likes this.
  • StevenS.51581 (Customer)

    I'm also seeing that if I pass the "sid" cookie into my postman calls the /sessions/me will return properly. But that's another issue since it's a header cookie and I can't grab it on the web browser to share with my API.

This question is closed.
Loading
Using the Okta sign-in widget to get user session status via Okta API in my own API