- oauth_authenticate(+Request, +Site, +Options)
- Step 2: redirect to Google for obtaining an authorization code.
Google redirects back to oauth_handle_response/1. Options:
- realm(+Realm)
- Value for
openid.realm. Normally, this is the site's
root URL. By default, it is not sent.
- login_hint(+Hint)
- Hint to select the right account. Typically an email
address. By default, it is not sent.
- client_data(+Data)
- Add the given Data (any Prolog term) to the dict that is
passed to the login hooks.
- cookie_domain(+Domain)
- Set the Domain attribute of the cookie that binds the
login to the browser. By default the cookie is only sent
to the public host (see public_url/3). Use this if the
site is reachable under several names and a proxy may
redirect Google's callback from one to another, e.g., use
example.org if eu.example.org redirects to
www.example.org.