Brian Demers
It depends how custom you want your login screen, and the type of application you are creating. For your typical server side rendered app (via thymeleaf, jsp, or other template language), you want to look at an OAuth2 Authorization Code flow. On the Spring Security side its just a redirect to another site, so the actual login page isn’t hosted by your application. From here you have two options to customize the login page. 1.) you can tweak a few settings via your Okta Admin console. or 2.) you can configure a custom URL/domain (see https://help.okta.com/en/pr… and have full control over the page.
There is also a third option (https://github.com/okta/sam… which involves hosting an Okta widget directly, but I would strongly recommend the other two options first (as it is much more complicated, has more surface area, and could possibly change with future versions of Spring Security)