Вопрос

I am integrating with Spring Security OAuth2 and I am stuck on trying to require the client_id and client_secret for every request. So I'd like all my requests to require access_token, client_id and client_secret, is that doable?

Это было полезно?

Решение

Anything is possible. I'm not sure why you'd want to do that (and you really ought not to use request parameters or body for secrets), but all you would need is to add a custom filter that grabs the client details and asserts on them. Something like a BasicAuthenticationFilter, for instance.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top