You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 7, 2020. It is now read-only.
Google Suite Directory Groups can be fetched for the user.
A white list of group emails can be defined grant access.
The list of groups can be passed to an NGINX variable which can be
passed to the applications for fine grained access control.
A service account with Google Suite Domain-Wide Delegation of Authority
is required to access Google Directory API.
Added the possibility to extract also user email and name from the Oauth
profile data and pass them on as NGINX variables.
Copy file name to clipboardExpand all lines: README.md
+31-1Lines changed: 31 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,32 @@ variables are:
65
65
returned from Google (portion left of '@' in email).
66
66
-**$ngo_email_as_user** If set and `$ngo_user` is defined, username
67
67
returned will be full email address.
68
+
-**$ngo_email** Optional, boolean. If set to true, it will be populated with
69
+
the OAuth email returned from Google.
70
+
-**$ngo_name** Optional, boolean. If set to true, it will be populated with
71
+
the OAuth name returned from Google.
72
+
-**$ngo_groups** Optional, boolean. If set to true, it will be populated with
73
+
the Google Directory Groups of which the user is a member, within the Google
74
+
Suite domain defined in variable **$ngo_groups_domain**.
75
+
Requires the definition of **$ngo_service_account_json_file**,
76
+
**$ngo_organization_admin_email** and **$ngo_groups_domain**.
77
+
-**$ngo_allowed_groups** Optional, space separated list of email addresses of
78
+
Google Directory Groups. If set, will be used for access control, so that
79
+
only members of the defined groups will be authorized.
80
+
Requires the definition of **$ngo_service_account_json_file**,
81
+
**$ngo_organization_admin_email** and **$ngo_groups_domain**.
82
+
-**$ngo_service_account_json_file** Optional, path to JSON credentials file of the Google Service Account which has been granted domain-wide-delegation of the Google Suite Domain.
83
+
Please follow the [official documentation](https://developers.google.com/admin-sdk/directory/v1/guides/delegation) to setup Google Suite Domain-Wide Delegation of Authority and define at least the following scopes:
0 commit comments