Closed stojsavljevic closed 6 years ago
The logic for generating restTemplate
s is following:
implicit
grant requires implicitRestTemplate
client_credentials
requires clientCredentialsRestTemplate
authorization_code
requires authorizationCodeRestTemplate
password
requires passwordRestTemplate
When two or more grants are specified for a single action (e.g. [ implicit, client_credentials, authorization_code ]
) - the first one will be picked up (in this example it will be implicit
).
In case of multiple authorization grants, generated client should use different
restTemplate
for every different grant. Example raml:Generated client should use different
restTemplate
(actuallyOAuth2RestTemplate
) for these 2 endpoints - the one withClientCredentialsResourceDetails
and the one withAuthorizationCodeResourceDetails
. Actual configuration is not the part of generated code but client should make usage of differentrestTemplate
.