diff --git a/src/main/kotlin/no/nav/security/mock/oauth2/http/OAuth2HttpResponse.kt b/src/main/kotlin/no/nav/security/mock/oauth2/http/OAuth2HttpResponse.kt index b648b689..382ca13e 100644 --- a/src/main/kotlin/no/nav/security/mock/oauth2/http/OAuth2HttpResponse.kt +++ b/src/main/kotlin/no/nav/security/mock/oauth2/http/OAuth2HttpResponse.kt @@ -67,7 +67,9 @@ data class WellKnown( @JsonProperty("introspection_endpoint") val introspectionEndpoint: String, @JsonProperty("response_types_supported") - val responseTypesSupported: List = listOf("query", "fragment", "form_post"), + val responseTypesSupported: List = listOf("code", "none", "id_token", "token"), + @JsonProperty("response_modes_supported") + val responseModesSupported: List = listOf("query", "fragment", "form_post"), @JsonProperty("subject_types_supported") val subjectTypesSupported: List = listOf("public"), @JsonProperty("id_token_signing_alg_values_supported") diff --git a/src/test/kotlin/no/nav/security/mock/oauth2/e2e/WellKnownIntegrationTest.kt b/src/test/kotlin/no/nav/security/mock/oauth2/e2e/WellKnownIntegrationTest.kt index 018957e4..fd6bb42b 100644 --- a/src/test/kotlin/no/nav/security/mock/oauth2/e2e/WellKnownIntegrationTest.kt +++ b/src/test/kotlin/no/nav/security/mock/oauth2/e2e/WellKnownIntegrationTest.kt @@ -32,6 +32,7 @@ class WellKnownIntegrationTest { "userinfo_endpoint", "jwks_uri", "introspection_endpoint", + "response_modes_supported", "response_types_supported", "subject_types_supported", "id_token_signing_alg_values_supported",