Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest Okta sign in version doesn't redirect after authentication #92

Open
scott-david-walker opened this issue Nov 16, 2020 · 3 comments

Comments

@scott-david-walker
Copy link

I used the basic skeleton of the sample project to start my own project and ran into issues with Okta not redirecting after successful authentication. After a chunk of debugging, I realised that I am on the latest version of the Okta Sign In Widget (^5.0.1) whilst the sample project is on ^4.4.4. If I downgrade to 4.4.4 then the redirect works as expected.

To confirm, I upgraded the sample project to "@okta/okta-signin-widget": "^5.0.1", and can confirm that the redirect no longer works after successful authentication.

Is there another package I need to install for it to work on this version or am I missing something simple?

@swiftone
Copy link

@scott-david-walker - hello again! You are correct - the samples are currently using version 4.x of the okta-signin-widget.

otka-signin-widget 5.x is a recent release and we are still updating our various samples and guides to reflect the changes.

In the meantime, if you are interested in using the latest okta-signin-widget, you can apply the steps listed in our migration guide:
https://github.com/okta/okta-signin-widget/blob/master/MIGRATING.md#migrating-from-4x-to-5x, in particular the first two items apply to what you are describing:

@cysieks
Copy link

cysieks commented Nov 19, 2020

How to store tokens in showSignInToGetTokens, so okta auth can see them?

@swiftone
Copy link

@cysieks - We have not yet updated this sample to use the 5.x version of the okta-signin-widget to show that flow, but until we do hopefully this gives you enough information:

the calls would be similar to:

        tokenManager.add('idToken', tokens.idToken);
        tokenManager.add('accessToken', tokens.accessToken);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants