Hi,
I am using the com.okta.authn.sdk.client to authenticate a user. This gives me a sessionToken in the response.
From this sessionToken I would like to retrieve an id_token (jwt) from the authorization server.
Is it possible to retrieve the id_token via an api call or utlilizing any sdk from the backend?
The only way I found that I can get the id_token is to enter the following URL into a browser which contains the sessionToken as a parameter:
Request-URL
{{OKTA-HOST}}/oauth2/v1/authorize?client_id=xxxxxxxxxxxx
&response_type=id_token&scope=openid&prompt=none&redirect_uri=https://localhost:80&state=Af0ifjslDkj&nonce=n0S6_WzA2Mj&sessionToken=2012…zhN5
Response-URL:
https://localhost:80/#id_token=eyJra....VFddrg&state=Af0ifjslDkj
Any thoughts how this could work from the backend without any redirects going on?