wrapped auth method check, added SECRET_JWT, closes #621

pull/627/head
Justin Richer 2014-06-18 18:24:05 -04:00
parent 9f9b49fc63
commit acf039a1f7
1 changed files with 3 additions and 2 deletions

View File

@ -352,8 +352,9 @@ public class ClientDetailsEntity implements ClientDetails {
@Transient
public boolean isSecretRequired() {
if (getTokenEndpointAuthMethod() != null &&
getTokenEndpointAuthMethod().equals(AuthMethod.SECRET_BASIC) ||
getTokenEndpointAuthMethod().equals(AuthMethod.SECRET_POST)) {
(getTokenEndpointAuthMethod().equals(AuthMethod.SECRET_BASIC) ||
getTokenEndpointAuthMethod().equals(AuthMethod.SECRET_POST) ||
getTokenEndpointAuthMethod().equals(AuthMethod.SECRET_JWT))) {
return true;
} else {
return false;