| Did you know ... | Search Documentation: |
| google_client.pl -- Sign in with Google OpenID Connect |
This module deals with the Google OpenID Connect federated authentication method. An HTTP handler that wishes to establish a login using Google uses the following flow of control.
oath2(auth_redirect), implemented by
oauth_handle_redirect/1.
oauth_authenticate(+Request, +Site, +Options)openid.realm. Normally, this is the site's
root URL. By default, it is not sent.
openid_connect_discover(+Site, -Dict) is det
key(+Which, -Key) is det[multifile]
login_existing_user(+Claim) is semidet[multifile]client_data(Term). Note that the term passed is a copy.This call must return an HTML document indicating that the user logged in successfully or redirect to the URL supplied with return to using http_redirect/3.
create_user(+Profile) is det[multifile]family_name, gender, given_name,
locale, name, picture and profile. Check the Google docs
for details.
This call creates a new user, typically after verifying that the user is human and completing the profile. As login_existing_user/1, it must return a web page or redirect.
cert_verify(SSL, ProblemCert, AllCerts, FirstCert, Error) is det