<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
0D51Y00009vzuYVSAYOkta Classic EngineAuthenticationAnswered2020-11-23T07:21:06.000Z2020-11-23T06:27:05.000Z2020-11-23T07:21:06.000Z
How to get AccessToken from session_id without browser

I'm implementing webauthn flow from the CLI tool.

I can successfully get the session Id.

 

Then I need to get the AccessToken.

I try to follow https://developer.okta.com/docs/reference/api/oidc/*authorize

 

q.Add("response_type", "token")

q.Add("scope", "openid")

q.Add("state", "something")

q.Add("nonce", "something_else")

q.Add("client_id", <client_id>)

q.Add("redirect_uri", "http://localhost:5000/callback")

q.Add("sessionToken", sessionToken)

 

If I add prompt=none then I get the error:

error=login_required&error_description=The+client+specified+not+to+prompt,+but+the+user+is+not+logged+in

even though I pass the sessionToken.

 

What am i doing wrong?

 

 


This question is closed.
Loading
How to get AccessToken from session_id without browser