Debian Codegraph @

doc/sources/admin/authopenidconnect_google.rst

raw
1 Google
2 ======
3
4 |image0|
5
6 Presentation
7 ------------
8
9 Do you we have to present `Google <http://www.google.com>`__? The good
10 news is that Google is a standard OpenID Provider, and so you can easily
11 delegate the authentication of LL::NG to Google:
12 https://developers.google.com/identity/protocols/OpenIDConnect
13
14
15 .. attention::
16
17 Google does not support logout through OpenID Connect. If
18 you close your session on LL::NG side, your Google session will still be
19 open.
20
21 Register on Google
22 ------------------
23
24 You need a Google developer account to access to
25 https://console.developers.google.com/
26
27 Here you can go in API Manager and get new credentials (``client_id``
28 and ``client_secret``).
29
30 You need to provide the callback URLs, for example
31 https://auth.domain.com/?openidconnectcallback=1.
32
33 Declare Google in your LL::NG server
34 ------------------------------------
35
36 Go in Manager and create a new OpenID Connect provider. You can call it
37 ``google`` for example.
38
39 Click on ``Metadata``, and use the OpenID Connect configuration URL to
40 load them: https://accounts.google.com/.well-known/openid-configuration.
41
42 You can also load the JWKS data from the URL
43 https://www.googleapis.com/oauth2/v3/certs. But as Google rotate their
44 keys, we will also configure a refresh interval on JKWS data.
45
46 Go in ``Exported attributes`` to choose which attributes you want to
47 collect. Google supports these claims:
48
49 - email
50 - email_verified
51 - family_name
52 - given_name
53 - locale
54 - name
55 - picture
56 - sub
57
58 Now go in ``Options``:
59
60 - In ``Configuration``, register the ``client_id`` and
61 ``client_secret`` given by Google. Set also the configuration URI
62 with https://accounts.google.com/.well-known/openid-configuration,
63 and JWKS refresh, for example every day: 86400.
64 - In ``Protocol``, adapt the ``scope`` to the exported attributes you
65 want. You can for example use ``openid profile email``.
66 - In ``Display``, you can set the name and the logo
67
68 .. |image0| image:: /applications/google_logo.png
69 :class: align-center
70