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

Cann't modify service provider's response when it's protected by Spring Cloud OAuth2. #557

Open
waitshang opened this issue Nov 18, 2020 · 4 comments
Labels

Comments

@waitshang
Copy link

Cann't modify service provider's response when it's protected by Spring Cloud OAuth2.
When I request a service with wrong Bear Token, it returns

{
    "error": "invalid_token",
    "error_description": "2ba1194e-ab3d-464b-877e-c2979c6b3b84"
}
@waitshang waitshang added the Bug label Nov 18, 2020
@whiskeysierra
Copy link
Collaborator

Just to verify, have you followed these instructions?
https://github.com/zalando/problem-spring-web/tree/main/problem-spring-web#security

@waitshang
Copy link
Author

Just to verify, have you followed these instructions?
https://github.com/zalando/problem-spring-web/tree/main/problem-spring-web#security

I have used problem-spring-web-starter artifact. Is it necessary to follow those instructions?

@whiskeysierra
Copy link
Collaborator

No, I'd hope that's enough. Can you provide a failing test case as a pull request or a demo project with the minimal steps needed to reproduce the issue?

@waitshang
Copy link
Author

waitshang commented Dec 2, 2020

No, I'd hope that's enough. Can you provide a failing test case as a pull request or a demo project with the minimal steps needed to reproduce the issue?

It seems that the problem-spring-web project can't resolve org.springframework.security.oauth2.common.exceptions.OAuth2Exception.

https://github.com/waitshang/problem-spring-web-demo.git

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

No branches or pull requests

2 participants