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

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("")