Skip to content

Commit dbc12d8

Browse files
authored
Merge pull request #503 from sascha-eisenmann/master
Added "code_challenge_methods_supported" to well known response
2 parents 0d05988 + b4776eb commit dbc12d8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ A request to `http://localhost:8080/default/.well-known/openid-configuration` wi
109109
"PS256",
110110
"PS384",
111111
"PS512"
112-
]
112+
],
113+
"code_challenge_methods_supported":[
114+
"plain",
115+
"S256"
116+
]
113117
}
114118
```
115119

src/main/kotlin/no/nav/security/mock/oauth2/http/OAuth2HttpResponse.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ data class WellKnown(
4242
val subjectTypesSupported: List<String> = listOf("public"),
4343
@JsonProperty("id_token_signing_alg_values_supported")
4444
val idTokenSigningAlgValuesSupported: List<String> = (KeyGenerator.ecAlgorithmFamily + KeyGenerator.rsaAlgorithmFamily).map { it.name }.toList(),
45+
@JsonProperty("code_challenge_methods_supported")
46+
val codeChallengeMethodsSupported: List<String> = listOf("plain", "S256"),
4547
)
4648

4749
@JsonInclude(JsonInclude.Include.NON_NULL)

0 commit comments

Comments
 (0)