Baby Steps 2: Creating a Custom Login Page

Thank you for your previous reply re: loading resources from the Okta CDN.

Proceeding with task, I am looking at the sample code from https://github.com/okta/samples-java-spring/custom-login . The HTML in login.html looks old, as the copyright is from 2017, and it references

script src=“https://global.oktacdn.com/okta-signin-widget/5.4.2/js/okta-sign-in.min.js” type=“text/javascript”></script

and

link href=“https://global.oktacdn.com/okta-signin-widget/5.4.2/css/okta-sign-in.min.css” type=“text/css” rel=“stylesheet”/>

whereas I think the current widget version is 5.5.2 .

Should I be using this login.html, or should I be looking at newer sample code from a different URL?

As I previously mentioned, I am building a Java/Spring self-hosted (embedded) web app and using OAuth2, and loading the resources from the Okta CDN as recommended.

Thank you for your invaluable assistance, mraible or anyone else. I greatly appreciate it!

Upgrading the version number in the CDN URLs shouldn’t cause any issues. You might also try entering an issue in the GitHub sample, asking for an update.

1 Like

Thank you! Sincere appreciation.

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