Passing parameter from prelogin to post login using okta redirect flow

Hi All,

We are using Okta redirect flow in our application where Okta login screen redirects to our application end point.

As a part of user experience we have customized login page and added Language toggle on login screen.

For improved user experience, we want to carry this language parameter from login page to our application so that we can show application in same language.

Unfortunately we were not able to perform this by using browser cookies and local storage as the domain name changes.

Could you please help us provide some information on how we can do this.

state parameter in authorize call stays the same, so you can set some string as state.

  • actual value (for example, state=spanish) or
  • a key which corresponds to an object in local store (for example, state=abc123 and local storage has abc123 = {language: spanish})) .

Since the callback to your application will contain state, you can use its value to drive your application logic.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.