This library contains several apis from different provider to connect a user using OpenIDConnect services(OAuth2 + Identity service) It's only server side authentication. You must implement yourself the client-side part.
- Slack
- Github
- Backlog
- OpenStack
- Any other can come from a PR
object App {
import scala.concurrent.duration._
implicit val actorSystem = ActorSystem("system")
implicit val timeout = 5.seconds
def main(args: Array[String]): Unit = {
val request = AccessTokenRequest("code", "redirect_uri", "client_id", "client_secret")
val client = GoogleOAuthClient()
val identityF = for {
accessToken <- client.issueOAuthToken(request)
identity <- client.getUserInfo(accessToken)
} yield identity
}
}
Actually you can't find this library on maven but soon it will be published. You can use this repository to get the library.