open source / oauth4s / changelog
Changelog
All notable changes to this project are documented here. The format follows Keep a Changelog and the project adheres to Semantic Versioning.
0.1.1 - 2026-11-21
Binary compatible with 0.1.0. Everything below comes from wiring 0.1.0 into a real backend.
Added
OAuth4sException, the common parent ofOAuthExceptionandJwtException. A refused ID token raised fromProvider.loginorOidcClient.completeis now caught by the same handler as a refused grant. The README lists what each raises.AuthorizationFlow.toFieldsandAuthorizationFlow.fromFields, to keep a flow in a session, a key store or a cookie betweenauthorizeand the callback.ClientId.parseandClientSecret.parse, which giveNonefor an empty value from the environment instead of throwing.StubHttpClient.routesBy, a stub routed by a partial function that runs as each request arrives.- A README table of what each provider's
UserProfilecarries: whichidto key accounts by, whether there is an email, and whether the provider vouches for it.
Changed
- The message of
OAuthError.MissingFieldno longer says "from the response", since stored flow fields report it too.
0.1.0 - 2026-11-21
The first release.
Added
oauth4s-core: the OAuth 2.0 / 2.1 client, with no dependencies.OAuthClient[F]: the authorization code flow with PKCE,state, the issuer check of RFC 9207 and an optionalnonce; the client credentials and refresh grants; the device authorization grant of RFC 8628 with polling; token revocation of RFC 7009; introspection of RFC 7662;requestTokenfor any other grant;resourcefor a protected JSON resource.- Typed protocol values (
ClientId,ClientSecret,RedirectUri,Endpoint,Issuer,AccessToken,RefreshToken,IdToken,AuthorizationCode,State,Nonce,CodeVerifier,CodeChallenge,Scope), with anEndpointthat ishttpsor loopback by construction. ClientAuthentication:Public,SecretBasic,SecretPostandSecretMinted.OAuthClientConfig,EndpointsandAuthorizationOptionsas builders, including the scope separator, forwarded callback parameters and a token response adapter for providers that deviate from the RFC.- Discovery per RFC 8414 with the OpenID configuration as a fallback, and the issuer of the document checked.
TokenSource: a cached token for client credentials or for a refresh token.OAuthErrorwithErrorCode, andOAuthExceptionthat carries it; error documents are read whatever their HTTP status and in Facebook's and Instagram's shapes.- The three SPIs:
Effect[F](with an instance forscala.util.Try),HttpClient[F]andJsonCodec(with a built-in, dependency-free default), plusJsonDecoder[A]for the application's own types.
oauth4s-jwt: JWT parsing, verification (RS, PS, ES and HS families, an algorithm allow-list,exp,nbf,iss,aud, custom checks) and signing; JWK and JWKS;JwksSourcewith a cached remote source that refetches on an unknown key id; PKCS#8 PEM private keys.oauth4s-oidc:OidcClient[F]— discovery,openidand nonce on authorization, ID token validation includingazpandat_hash, UserInfo, RP-initiated logout.oauth4s-providers: Google, Microsoft, Apple, Facebook, Instagram, Strava, VK ID and X behind oneProvider[F]interface, with a normalizedUserProfile;Provider.oauthandProvider.oidcfor a provider of your own.oauth4s-cats,oauth4s-zio,oauth4s-kyo,oauth4s-rapid:Effect[F]for each runtime.oauth4s-http-jdk,oauth4s-http4s,oauth4s-sttp:HttpClient[F]on each client.oauth4s-circe,oauth4s-zio-json,oauth4s-jsoniter:JsonCodec, a bridge from the library's decoders toJsonDecoder, and the library's codecs forJsonandTokenResponse.oauth4s-testkit:StubHttpClient,TestIssuerandFakeAuthorizationServer, a loopback authorization server with discovery, PKCE verification, refresh token rotation, the device flow and signed ID tokens.- A conformance suite per SPI that every runtime, JSON codec and HTTP client is tested against; an
itmodule that runs an OpenID Connect login over real HTTP on the next Scala release, compiles every Scala block of the README and the recipes, and runs the recipes; examples for cats-effect, ZIO,Tryand the providers; JMH benchmarks of parsing and ID token verification.
built from CHANGELOG.md at v0.1.1
edit this page on GitHub