zitadel-oidc/pkg
Tim Möhlmann 6708ef4c24
feat(rp): return oidc.Tokens on token refresh (#423)
BREAKING CHANGE:
- rename RefreshAccessToken to RefreshToken
- RefreshToken returns *oidc.Tokens instead of *oauth2.Token

This change allows the return of the id_token in an explicit manner,
as part of the oidc.Tokens struct.
The return type is now consistent with the CodeExchange function.

When an id_token is returned, it is verified.
In case no id_token was received,
RefreshTokens will not return an error.

As per specifictation:
https://openid.net/specs/openid-connect-core-1_0.html#RefreshTokenResponse

Upon successful validation of the Refresh Token,
the response body is the Token Response of Section 3.1.3.3
except that it might not contain an id_token.

Closes #364
2023-08-18 14:36:39 +02:00
..
client feat(rp): return oidc.Tokens on token refresh (#423) 2023-08-18 14:36:39 +02:00
crypto chore(linting): apply gofumpt & goimports to all .go files (#225) 2022-10-05 09:33:10 +02:00
http feat: add context to all client calls (#345) 2023-03-23 15:31:38 +01:00
oidc feat: generic Userinfo and Introspect functions (#389) 2023-05-05 12:36:37 +00:00
op chore: cleanup unneeded device storage methods (#399) 2023-05-26 10:06:33 +02:00
strings feat: Token Revocation, Request Object and OP Certification (#130) 2021-11-02 13:21:35 +01:00