We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 933ea62 commit 5aa7bdbCopy full SHA for 5aa7bdb
src/main/kotlin/no/nav/security/mock/oauth2/token/OAuth2TokenCallback.kt
@@ -62,7 +62,9 @@ open class DefaultOAuth2TokenCallback
62
"tid" to issuerId,
63
).apply {
64
putAll(claims)
65
- put("azp", tokenRequest.clientIdAsString())
+ if (tokenRequest.grantType() == GrantType.AUTHORIZATION_CODE) {
66
+ put("azp", tokenRequest.clientIdAsString())
67
+ }
68
}
69
70
override fun tokenExpiry(): Long = expiry
0 commit comments