Skip to content

v3.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 13 Oct 05:46
· 132 commits to main since this release
976b406

3.0.0 (2023-10-13)

Bug Fixes

chore

Features

BREAKING CHANGES

    • Just making sure v3 release is triggered.
  • rp: - 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.

  • rp.Userinfo and rs.Introspect now require
    a type parameter.
    • The various verifier types are merged into a oidc.Verifir.
  • oidc.Verfier became a struct with exported fields
  • use type aliases for oidc.Verifier

this binds the correct contstructor to each verifier usecase.

  • fix: handle the zero cases for oidc.Time

  • add unit tests to oidc verifier

  • fix: correct returned field for JWTTokenRequest

JWTTokenRequest.GetIssuedAt() was returning the ExpiresAt field.
This change corrects that by returning IssuedAt instead.

  • The returned router from op.CreateRouter() is now a chi.Router