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

Sign-In Widget doesn't work with a server-rendered JS framework #295

Open
mraible opened this issue Sep 11, 2017 · 6 comments

Comments

@mraible
Copy link

commented Sep 11, 2017

I tried to create a Nuxt.js application and integrate the Sign-In Widget. Unfortunately, it does not work. It'd be great if this widget could work with frameworks like Nuxt.js and Angular Universal (now part of Angular core).

Window is not defined

@lboyette-okta

This comment has been minimized.

Copy link
Contributor

commented Nov 16, 2017

One of the many reasons this doesn't work is okta-auth-js depends on window APIs. This will require quite a bit of refactoring.

@JasonFoglia

This comment has been minimized.

Copy link

commented Feb 27, 2018

Hi Iboyette-okta, is there a timeline for refactoring or maybe a temp fix? Thank you!

@lboyette-okta

This comment has been minimized.

Copy link
Contributor

commented Feb 28, 2018

There's not, but we'll take your request as a 👍on it (you may also want to add a real 👍on this issue)!

Which framework are you using to do server-side rendering?

@JasonFoglia

This comment has been minimized.

Copy link

commented Feb 28, 2018

Hi Iboyette-okta, thank you for your response. I'm using WebPack or as mentioned above Angular Universal.

@alisonhall

This comment has been minimized.

Copy link

commented Jun 14, 2018

This is still a problem, and I can't use it on our React.js SPA with Webpack.

@mraible

This comment has been minimized.

Copy link
Author

commented Jun 14, 2018

@alisonhall I've talked with internal teams about this and there are currently no plans to support server-side rendering in any of our SDKs, including the Sign-In Widget.

The good news is Okta's API is based on OAuth and OIDC, so you could likely use another library that supports these standards.

kevee added a commit to csumb/csumb-gatsby that referenced this issue Sep 24, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.