guardian / social-sign-in   0.1.14

Apache License 2.0 GitHub

Scala wrapper around Google's Java Open ID Connect library

Scala versions: 2.13 2.12

Warning

As of 12/12/2024 this library is no longer maintained and has been archived. It's last known use was removed from IDAPI in github/identity@1e3af8.

social-signin

Publish library with

sbt "release"

Import library with:

libraryDependencies += "com.gu" %% "social-signin" % "<latest-version>"

Code example:

val idToken = IDToken("YXNkZmFzZGZhc2RmYXNk)
val googleClientID = GoogleClientID("10001")

GoogleOpenIDConnect.fetchSocialUser(idToken, googleClientID).map(_).getOrElse("")