OAuth2 Principal and Authorities example - refactor and added example using custom authorization server

This commit is contained in:
db
2018-07-31 22:42:52 +01:00
parent 9940bf2960
commit d05f4572f8
10 changed files with 88 additions and 13 deletions

View File

@@ -30,7 +30,7 @@ public class AuthServerConfig extends AuthorizationServerConfigurerAdapter {
.authorizedGrantTypes("authorization_code")
.scopes("user_info")
.autoApprove(true)
.redirectUris("http://localhost:8082/ui/login","http://localhost:8083/ui2/login")
.redirectUris("http://localhost:8082/ui/login","http://localhost:8083/ui2/login","http://localhost:8082/login")
// .accessTokenValiditySeconds(3600)
; // 1 hour
}