Skip to content
This repository was archived by the owner on Jan 26, 2025. It is now read-only.
This repository was archived by the owner on Jan 26, 2025. It is now read-only.

Pass username for bypassing the Okta hosted page and redirect to Microsoft login. #904

Description

@muditjuneja

I am trying to pass a param called "username" to the config to avoid having an Okta hosted login screen when I initiate the authorize request. What I want is for a user to be redirected to the Microsoft login screen after I initiate the login request. I wish to bypass Okta screen where user have to enter their email id and then he redirects to the Microsoft login page.

I'm submitting this issue for the package(s):

  • [-] okta-react

I'm submitting a:

  • [-] Bug report

Current behavior

I am initiating the login request like this :
authService.login('/app/okta-log-in');
Where okta-log-in is my custom component where I am handling the authentication via token/idToken

Expected behavior

What I want is something like this :
authService.login('/app/okta-log-in', { 'username': 'mudit.juneja@xyz.com' });

But this does not add any username param in my okta redirect link.

But if I try like this :
authService.login('/app/okta-log-in&username=mudit.juneja@xyz.com');
What happens is that it adds the param to the final URL but it just URL encodes the entire string and replace =/@ with %3D/%40 and the okta login page appears because it could not parse the username param.

If I manually add the username param in the URL, I don't see the Okta screen and it just takes me to the Microsoft login page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions