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:
parent
3940b520a8
commit
72a108a33b
8 changed files with 99 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue