Skip to content

Commit acf039a

Browse files
committed
wrapped auth method check, added SECRET_JWT, closes mitreid-connect#621
1 parent 9f9b49f commit acf039a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

openid-connect-common/src/main/java/org/mitre/oauth2/model/ClientDetailsEntity.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,9 @@ public void setAllowIntrospection(boolean allowIntrospection) {
352352
@Transient
353353
public boolean isSecretRequired() {
354354
if (getTokenEndpointAuthMethod() != null &&
355-
getTokenEndpointAuthMethod().equals(AuthMethod.SECRET_BASIC) ||
356-
getTokenEndpointAuthMethod().equals(AuthMethod.SECRET_POST)) {
355+
(getTokenEndpointAuthMethod().equals(AuthMethod.SECRET_BASIC) ||
356+
getTokenEndpointAuthMethod().equals(AuthMethod.SECRET_POST) ||
357+
getTokenEndpointAuthMethod().equals(AuthMethod.SECRET_JWT))) {
357358
return true;
358359
} else {
359360
return false;

0 commit comments

Comments
 (0)