Skip to content

Commit 4e07bec

Browse files
committed
docs: add note about names
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
1 parent ce9d2ee commit 4e07bec

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/Providers.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,13 @@ To require multiple groups, define `CONFIG_OAUTH2_VALIDATE_GROUPS`.
103103

104104
### Restrict auth to specific Google Groups in your domain. (optional)
105105

106+
> [!IMPORTANT]
107+
> For `oauth2.validate.groups`, you have to set the IDs of the groups, not the names.
108+
106109
1. Navigate to the [Google Cloud Identity API](https://console.cloud.google.com/apis/api/cloudidentity.googleapis.com/) page and click on the "Enable API" button.
107110
2. Access the [Google Admin Portal](https://admin.google.com/ac/groups) and locate the group that is required for the `openvpn-auth-oauth2` authorization.
108-
3. The URL of the group page should follow this pattern: `https://admin.google.com/ac/groups/<ID>`. Replace `<ID>` with the actual ID of the group. Make sure to copy this ID for future use. If there are multiple groups, repeat this step for each one.
109-
4. Insert the copied ID(s) into the `CONFIG_OAUTH2_VALIDATE_GROUPS` configuration setting in your `openvpn-auth-oauth2` setup.
111+
3. The URL of the group page should follow this pattern: `https://admin.google.com/ac/groups/<ID>`. Replace `<ID>` with the ID of the group. Make sure to copy this ID for future use. If there are multiple groups, repeat this step for each one.
112+
4. Insert the copied IDs into the `CONFIG_OAUTH2_VALIDATE_GROUPS` configuration setting in your `openvpn-auth-oauth2` setup.
110113
5. **Optional**: If oauth2 scopes are set in the configuration, the `https://www.googleapis.com/auth/cloud-identity.groups.readonly` scope is required for group validation.
111114

112115
### Configuration

0 commit comments

Comments
 (0)