I have two questions regarding spring-cloud-security with OAuth2:
How do I protected resources by a grant_type? I want to secure my REST API with client_credentials and then want to protected user specific resources by the password grant type. Is this even possible?
Accoording to this tutorial, the password grant type does not need a client secret, though spring cloud oauth2 always seems to require the client secret. How do I handle this? By setting a nonsense client secret like "abc" and just not care about it?
If I have a client app with @EnableOAuth2Sso I only get a redirect to the authorization Uri although I dont provide grant type "authorization code". Wouldn't it make more sense if I was redirected to the token Uri if I only provide the password grant type?
Thanks