Custom Login with Springboot and Authorization Code Flow

Is it possible to configure a custom UI login form instead of using the Okta login form with the Authorization Code flow?

I would like to have a route to login and host my own login form so I can customize the look and feel.

We have a sample repo which uses the okta sign-in widget to customize your login experience.
It doesn’t use our spring-boot client library though.

You can take a look at the sample code here - https://github.com/okta/samples-java-spring-mvc

We also have an example application that uses the spring-boot library with custom login page - https://github.com/okta/okta-spring-boot/tree/master/examples/hosted-login-code-flow

@bdemers can help you with any questions you have. :slight_smile:

@josh.hardy.ufen for okta/samples-java-spring take a look at:
https://github.com/okta/samples-java-spring-mvc/tree/v2/custom-login
This code will be merged to master really soon, so if that branch no longer exists, it has already been merged and will be https://github.com/okta/samples-java-spring-mvc/tree/master/custom-login (for future googlers)

Okta also supports a hosted custom login page, on some of the tiers.

what tiers are these? I don’t see this called out in the pricing page.

also, without customizing the login page, how does one have social login as part of the free tier?

Yep, I have an example in python/flask here in github… The documentation for configuring everything is a bit scant but you can take a look at the code while I update the docs to give a more full Okta walk through on setting up the example.

Here is a link to the pricing for the developer licenses, reach out to the “contact us” option for more questions on pricing and additional tiers that may better fit your uses cases
https://developer.okta.com/pricing/

I should have just made one giant reply :wink:
For the Social login, that comes standard with the free tier. The Okta Sign On Widget supports social Auth out of the box but you can check out our reference docs here for Social Auth integration:
https://developer.okta.com/authentication-guide/social-login/

Ok. Thanks. If I understand you right, the free developer tier does allow for a custom login widget which is how we can use the social login experience such as Facebook Login.

It’s difficult to use just a single tutorial. It seems like they all have a piece of information that I need.

1 Like

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