Redirect to Dashboard without widget

Is it possible to redirect an authenticated user directly to their dashboard? For most apps I would get a Session Token, tack it onto the end of the Embed URL, and redirect. But the dashboard doesn’t have an embed URL, so I’m kind of stuck.

Many thanks in advance,

Hey @jcarroll if you’ve got a sessionToken does the user already have an okta session cookie? Can’t you just link to the dashboard?

Just opening chrome devtools shows some of the hops in the network tab. You can probably kick off an OpenID flow to land there as well. You can pass a sessionToken into the /authorize endpoint (I’d assume on your default, okta org auth server not to be confused with your default custom auth server) to get a token and a session.

Here’s an example of a request I observed at login time for my okta end user dashboard

https://myoktatenant.okta.com/oauth2/v1/authorize?client_id=yourdashboardsclientid&code_challenge=QtucL-lAGgeDs0BQ2xzW1Nfzi5QAm5tVBnaQq310Q9k&code_challenge_method=S256&nonce=z7FHgYsWgMWFWBHF4sxhhdxJOzFUGFt0eOOB4dr2GjCqQC0HfCGOtANM1olZ8hQU&redirect_uri=https://myoktatenant.okta.com/enduser/callback&response_type=code&state=xaaZ0dAdHc1bkCI2JTrjej4UHx30gHM35fh5d4zWB65owXUAkNRgtW427yWZBT4X&scope=openid profile email okta.users.read.self okta.users.manage.self okta.internal.enduser.read okta.internal.enduser.manage

Hope this helps

1 Like