
ldsm8 (ldsm8) asked a question.
I used the "Get Current Session" Okta api, and this api call defines that we need to pass okta_session_cookie but from where can I get "okta_session_cookie". So to get okta_session_cookie i gone through one article https://developer.okta.com/use_cases/authentication/session_cookie*retrieving-a-session-cookie-via-openid-connect-authorization-endpoint but in this they used sessionToken, so can anyone tell me that how we can get sessionToken

Hi! Vlad here with Okta's Customer Support Team, thank you for reaching out to us.
A session token is a one-time bearer token that provides proof of authentication and may be redeemed for an interactive SSO session in Okta in a user agent. Session tokens can only be used once to establish a session for a user and are revoked when the token expires.
The sessionToken param serves as the primary credentials. It represents the authentication that was already performed via the Authentication API.
https://developer.okta.com/docs/api/resources/authn#request-example-for-primary-authentication-with-public-application
In this article you'll find an example of how to do an API call for primary Authentication with Public Application which retrieves you the session token in the response.
Thanks for the reply Vlad. Currently we are using Openid connect API calls and I am trying use api call - Get User Current Session to use auto login feature of SSO and I gone through the above article for retrieving Session Token value and i didn't get that how I can use this for Auto login functionality, So can you please help us to implement Auto login feature without passing credential
Hi, did you get any reply. i'm facing the same issue.
getting the sessionId of the current user...
Thanks.
Would also be curious the answer.