can example be refreshed to what was on the Spring IO 2023 slides ?
Opened this issue · 1 comments
maxfieb commented
seems like the version in git is older / different that what was presented on Spring IO 2023 slides
If is it incomplete, compared to the application.xml that was on the slides, can it be updated please ?
(it looked like there were application.xml entries for authorization-server that are not in current git)
parvez-amplicomm commented
+1 @maxfieb
@rwinch I tried adding a custom user service , I can see form login working, I am facing the issue that client is throwing 401 after redirection of Authorization server.
2023-08-07T16:58:04.335+05:30 DEBUG 23872 --- [io-8080-exec-10] o.s.security.web.FilterChainProxy : Securing GET /oauth2/authorization/messaging-client-oidc?error
2023-08-07T16:58:04.343+05:30 DEBUG 23872 --- [io-8080-exec-10] o.s.s.web.DefaultRedirectStrategy : Redirecting to http://localhost:8089/oauth2/authorize?response_type=code&client_id=messaging-client&scope=openid%20profile&state=og9oXeGbFOqVuLhQiGJyJ-SCWMDPHeJD5i3CNh85bXA%3D&redirect_uri=http://127.0.0.1:8080/login/oauth2/code/messaging-client-oidc&nonce=VtTsJDQLWE1ls452AV9y-cS-6Onf811k7mfwaa7UFVU
2023-08-07T16:58:04.474+05:30 DEBUG 23872 --- [nio-8080-exec-1] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ResourceHttpRequestHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/], ServletContext [/]]
2023-08-07T16:58:04.474+05:30 DEBUG 23872 --- [nio-8080-exec-1] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ResourceHttpRequestHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/], ServletContext [/]]
2023-08-07T16:58:04.474+05:30 DEBUG 23872 --- [nio-8080-exec-1] o.s.security.web.FilterChainProxy : Securing GET /login/oauth2/code/messaging-client-oidc?code=KCp74YAXBhJVXEgFo8dwwV_B13ueH0dHiHHoCKbtD7Q4FYCNFQRBbNYzrSxKM7ML7yONLVDtj1oOs_HleYvSjyf863pmjzXoorYDJ9QVMcWc5Rk3wNPj9zmmTiG4WoDx&state=og9oXeGbFOqVuLhQiGJyJ-SCWMDPHeJD5i3CNh85bXA%3D
2023-08-07T16:58:04.482+05:30 DEBUG 23872 --- [nio-8080-exec-1] o.s.web.client.RestTemplate : HTTP POST http://localhost:8089/oauth2/token
2023-08-07T16:58:04.482+05:30 DEBUG 23872 --- [nio-8080-exec-1] o.s.web.client.RestTemplate : Accept=[application/json, application/*+json]
2023-08-07T16:58:04.482+05:30 DEBUG 23872 --- [nio-8080-exec-1] o.s.web.client.RestTemplate : Writing [{grant_type=[authorization_code], code=[KCp74YAXBhJVXEgFo8dwwV_B13ueH0dHiHHoCKbtD7Q4FYCNFQRBbNYzrSxKM7ML7yONLVDtj1oOs_HleYvSjyf863pmjzXoorYDJ9QVMcWc5Rk3wNPj9zmmTiG4WoDx], redirect_uri=[http://127.0.0.1:8080/login/oauth2/code/messaging-client-oidc]}] as "application/x-www-form-urlencoded;charset=UTF-8"
2023-08-07T16:58:04.490+05:30 DEBUG 23872 --- [nio-8080-exec-1] o.s.web.client.RestTemplate : Response 401 UNAUTHORIZED
2023-08-07T16:58:04.498+05:30 DEBUG 23872 --- [nio-8080-exec-1] .s.a.DefaultAuthenticationEventPublisher : No event was found for the exception org.springframework.security.oauth2.core.OAuth2AuthenticationException