Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can example be refreshed to what was on the Spring IO 2023 slides ? #1

Open
maxfieb opened this issue May 29, 2023 · 1 comment
Open

Comments

@maxfieb
Copy link

maxfieb commented May 29, 2023

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
Copy link

+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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants