guardian / social-sign-in   0.1.13

Apache License 2.0 GitHub

Scala wrapper around Google's Java Open ID Connect library

Scala versions: 2.13 2.12 2.11

Cross publish library for 2.11 and 2.12 with

sbt "release cross"

Import library with:

libraryDependencies += "com.gu" %% "social-signin" % "0.1.0"

Code example:

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

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