Repository navigation
oauth4s 0.1.1
A small release that follows from wiring 0.1.0 into a real backend. It is binary compatible with 0.1.0 (checked by MiMa), so upgrading is a version bump.
Added
OAuth4sException, the common base ofOAuthExceptionandJwtException: a sign-in endpoint catches both with one handler, whether the server or the ID token refused.AuthorizationFlow.toFieldsandAuthorizationFlow.fromFieldskeep a flow in a session or cookie between the redirect and the callback. A missing field or a bad verifier comes back as anOAuthError.ClientId.parseandClientSecret.parseread a value from configuration. An empty value givesNoneinstead of throwing.StubHttpClient.routesByroutes with a partial function evaluated on each request and answers 404 to anything unrouted.- The README now has a table of what each provider's
UserProfileholds: whether the id is stable or per-application, the email, and whether the provider vouches for it.
Changed
OAuthError.MissingFieldnow reads'name' is missing.
Installation
libraryDependencies ++= Seq(
"now.sendline" %% "oauth4s-cats" % "0.1.1",
"now.sendline" %% "oauth4s-http-jdk" % "0.1.1",
"now.sendline" %% "oauth4s-providers" % "0.1.1",
"now.sendline" %% "oauth4s-testkit" % "0.1.1" % Test,
)Full list in CHANGELOG.md.