add unit tests for oidc.IntrospectionResponse

- Changed UserInfoAddress to pointer in UserInfo and
IntrospectionResponse.
This was needed to make omitempty work correctly.

- Copy or merge maps in IntrospectionResponse GetUserInfo
and SetUserInfo
This commit is contained in:
Tim Möhlmann 2023-03-02 15:44:27 +02:00
parent 3940b520a8
commit 72a108a33b
8 changed files with 99 additions and 14 deletions

View file

@ -113,8 +113,8 @@ type IDTokenClaims struct {
UserInfoProfile
UserInfoEmail
UserInfoPhone
Address UserInfoAddress `json:"address,omitempty"`
Claims map[string]any `json:"-"`
Address *UserInfoAddress `json:"address,omitempty"`
Claims map[string]any `json:"-"`
}
// GetAccessTokenHash implements the IDTokenClaims interface