problem-spring-web icon indicating copy to clipboard operation
problem-spring-web copied to clipboard

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

Open waitshang opened this issue 4 years ago • 4 comments

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 avatar Nov 18 '20 07:11 waitshang

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

whiskeysierra avatar Nov 18 '20 20:11 whiskeysierra

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?

waitshang avatar Nov 19 '20 02:11 waitshang

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?

whiskeysierra avatar Dec 01 '20 22:12 whiskeysierra

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

waitshang avatar Dec 02 '20 03:12 waitshang