Pritunl SSO

Hello team,

I’m trying to configure SSO with an Organization Google Workspace environment.

We have 2 types of users

  1. Users from the corporation domain that are created inside Google Workspace
  2. Users outside of the Google Workspace domain, like standalone users

Is it possible to configure SSO to cover both types of users to log in through SSO?

Unfortunately, I have not found any similar information on how to do it

You would need to remove the Google Admin Email and Google JSON Private Key from the top right settings. This will use only OAuth to authenticate the user. When using the Google Workspace API only one workspace can be used. It would also be best to configure device authentication with this configuration.

1 Like

Thank you for the help. Is it possible to operate with it on a Google Workspace-specific group?

If a user exists in a group, he gets access to VPN; if we remove him from the group, he loses access to VPN, no matter which domain he is related to.

You would need to use the groups mode to do that and it would only work with one Google Workspace. To do this delete all the organizations and create one organization. Set this organization as the default single sign-on organization in the top right settings then attach the organization to all servers. Then run the commands below. In each of the server settings add the groups that will be able to access that server. This can result in larger usage of IP address pools. Every user that is attached to a server will have a static IP assigned even if a group is not matched. The server virtual network subnet size should allow for this. For SAML the attribute groups is used to set a comma separated list of groups.

sudo pritunl set app.sso_azure_mode '"groups"'
sudo pritunl set app.sso_authzero_mode '"groups"'
sudo pritunl set app.sso_google_mode '"groups"'