Skip to content

A demo application show casing usage of OpenID Connect with Spring security without need of external libraries

License

Notifications You must be signed in to change notification settings

shyamz-22/oidc-spring-security-5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oidc-spring-security-5

A demo application show casing usage of OpenID Connect with Spring security without need of external libraries

Default redirect uri by spring security is

http://localhost:8080/login/oauth2/code/<<spring.security.oauth2.client.registration.provider>>

If you have set spring.security.oauth2.client.registration.provider this value to google then your redirect url should be http://localhost:8080/login/oauth2/code/google

See: OAuth2LoginAuthenticationFilter

Handling unauthenticated request:

When you request an endpoint unauthenticated, then spring security redirects to http://localhost:8080/oauth2/authorization/<<spring.security.oauth2.client.registration.provider>>

If you have set spring.security.oauth2.client.registration.provider this value to google, then the Identity provider config is fetched using a redirect to http://localhost:8080/oauth2/authorization/google, which then form the /authorize request according to the configuration and redirects

See: OAuth2AuthorizationRequestRedirectFilter

About

A demo application show casing usage of OpenID Connect with Spring security without need of external libraries

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages