http://localhost:3000/login/oauth2/code/okta
.http://localhost:3000
.application.yml
file, though you can also use properties files or any of the other supported externalization mechanisms.@Configuration
annotation./oauth2/authorization/okta
path of your application. You can use this to create a login
link in your application.This page returns the user attributes when the user authentications. You will use the /logout
link
in the template to implement the logout feature.index.html
page.
When the user authenticates, the application retrieves the users’s profile information attributes to render the
page.LogoutHandler
to redirect users to your Auth0 logout endpoint
(https://{yourDomain}/v2/logout
) and then immediately redirect them to your application.In the SecurityConfig
class, provide a LogoutHandler
that redirects to the Auth0 logout
endpoint, and configure the HttpSecurity
to add the logout handler