Skip to content

oauth4s 0.1.1

Latest

Choose a tag to compare

@shadowsmind shadowsmind released this 21 Nov 12:40
78ecaab

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 of OAuthException and JwtException: a sign-in endpoint catches both with one handler, whether the server or the ID token refused.
  • AuthorizationFlow.toFields and AuthorizationFlow.fromFields keep a flow in a session or cookie between the redirect and the callback. A missing field or a bad verifier comes back as an OAuthError.
  • ClientId.parse and ClientSecret.parse read a value from configuration. An empty value gives None instead of throwing.
  • StubHttpClient.routesBy routes 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 UserProfile holds: whether the id is stable or per-application, the email, and whether the provider vouches for it.

Changed

  • OAuthError.MissingField now 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.