We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 532a99b commit f3aab6fCopy full SHA for f3aab6f
1 file changed
src/main/java/org/oidc/msg/ProviderConfigurationResponse.java
@@ -6,6 +6,7 @@
6
import java.util.HashMap;
7
import java.util.List;
8
import java.util.Map;
9
+import java.util.regex.Pattern;
10
11
public class ProviderConfigurationResponse extends org.oidc.msg.oauth2.ASConfigurationResponse {
12
@@ -125,7 +126,7 @@ public boolean verify() throws InvalidClaimException {
125
126
@SuppressWarnings("unchecked")
127
List<String> rts = (List<String>) getClaims().get("response_types_supported");
128
for (String rt : rts) {
- if (rt.contains("code")) {
129
+ if (Pattern.compile("\\bcode\\b").matcher(rt).find()) {
130
if (!getClaims().containsKey("token_endpoint")) {
131
error.getMessages().add("'token_endpoint' is required when code response_type is supported");
132
}
0 commit comments