Do you we have to present Google? The good news is that Google is a standard OpenID Provider, and so you can easily delegate the authentication of LL::NG to Google: https://developers.google.com/identity/protocols/OpenIDConnect
Google does not support logout through OpenID Connect. If you close your session on LL::NG side, your Google session will still be open.
Register on Google¶
You need a Google developer account to access to https://console.developers.google.com/
Here you can go in API Manager and get new credentials (
You need to provide the callback URLs, for example https://auth.domain.com/?openidcallback=1.
Declare Google in your LL::NG server¶
Go in Manager and create a new OpenID Connect provider. You can call it
Metadata, and use the OpenID Connect configuration URL to
load them: https://accounts.google.com/.well-known/openid-configuration.
You can also load the JWKS data from the URL https://www.googleapis.com/oauth2/v3/certs. But as Google rotate their keys, we will also configure a refresh interval on JKWS data.
Exported attributes to choose which attributes you want to
collect. Google supports these claims:
Now go in
Configuration, register the
client_secretgiven by Google. Set also the configuration URI with https://accounts.google.com/.well-known/openid-configuration, and JWKS refresh, for example every day: 86400.
Protocol, adapt the
scopeto the exported attributes you want. You can for example use
openid profile email.
Display, you can set the name and the logo