Commit graph

2 commits

Author SHA1 Message Date
Tim Möhlmann
85bd99873d refactor: use struct types for claim related types
BREAKING change.
The following types are changed from interface to struct type:

- AccessTokenClaims
- IDTokenClaims
- IntrospectionResponse
- UserInfo and related types.

The following methods of OPStorage now take a pointer to a struct type,
instead of an interface:

- SetUserinfoFromScopes
- SetUserinfoFromToken
- SetIntrospectionFromToken

The following functions are now generic, so that type-safe extension
of Claims is now possible:

- op.VerifyIDTokenHint
- op.VerifyAccessToken
- rp.VerifyTokens
- rp.VerifyIDToken
2023-03-02 16:46:04 +02:00
Tim Möhlmann
11682a2cc8 oidc: add regression tests for token claim json
this helps to verify that the same JSON is produced,
after these types are refactored.
2023-03-02 16:45:15 +02:00