navikt / mock-oauth2-server

A scriptable/customizable web server for testing HTTP clients using OAuth2/OpenID Connect or applications with a dependency to a running OAuth2 server (i.e. APIs requiring signed JWTs from a known issuer)
MIT License
223 stars 54 forks source link

feat(DefaultOAuth2TokenCallback): Allow overriding tid claim #663

Closed oddsund closed 2 months ago

oddsund commented 2 months ago

As it's not a standard claim, it should be possible to override it by the consumer of the library.

azp is defined in https://openid.net/specs/openid-connect-core-1_0.html as the "OAuth 2.0 Client ID of this party", so leaving that one as is.