When I define (in my client) the "resource", I saw that it creates some instance of OAuth2ProtectedResourceDetails (I've looked at ResourceBeanDefinitionParser), depends on the "type" property. there, I see 4 options:
"authorization_code" --> AuthorizationCodeResourceDetails
"implicit" --> ImplicitResourceDetails
"client_credentials" --> ClientCredentialsResourceDetails
default --> BaseOAuth2ProtectedResourceDetails
my questions:
1. in the docs, I see that "Valid values include "authorization_code", "password", and "assertion". Default value is "authorization_code". Am I missing something, or should I fix the doc? I see nothing with password or assertion in ResourceBeanDefinitionParser.
2. in AbstractRedirectResourceDetails I see private String userAuthorizationUri. but in the class that extends it, AuthorizationCodeResourceDetails, there is also private String userAuthorizationUri. Shouldn't the string in AbstractRedirectResourceDetails be protected? and avoid this redundancy?


Reply With Quote
