Tutorial: Authenticate Using SAML with Google Workspace
Overview
Configure Google Workspace as a SAML 2.0 identity provider (IdP) for CloudConnexa using the SAML Setup Wizard. This lets your users authenticate to CloudConnexa with their Google Workspace credentials.
You'll create a custom SAML app in the Google Admin console, exchange configuration details between Google Workspace and CloudConnexa, map user attributes, and test authentication before completing the setup.
Before you begin
You need:
CloudConnexa: The Owner or Administrator role for the WPC you're configuring.
Google Workspace: A super administrator account.
Access to both administration portals: Keep both open while you configure SAML because you'll exchange values between them.
Step 1: Start the SAML Setup Wizard
Start by selecting Google Workspace as your IdP in CloudConnexa.
Sign in to your WPC's Administration portal at your Cloud ID address (for example,
yourcompany.openvpn.com).Navigate to Settings → User Authentication.
Select Edit.
On the SAML Single Sign-On card, select Setup.
Under Select Your Identity Provider, select Google Workspace.
The wizard displays the configuration instructions and default attribute mappings for Google Workspace.
Step 2: Get the service provider values for CloudConnexa
Google Workspace needs service provider (SP) values from CloudConnexa to send SAML authentication responses to the correct WPC.
Under Share CloudConnexa Metadata, copy the following values:
CloudConnexa value
Use in Google Workspace
Format
Single Sign-On URL (ACS)
ACS URL
https://sso-backend.openvpn.com/sso/api/v1/saml/acsIssuer Name
Entity ID
<cloud-id>.openvpn.comKeep the wizard open. You'll return to it after configuring Google Workspace.
For more information, refer to SAML and SCIM Service Provider Endpoints for CloudConnexa.
Step 3: Create a custom SAML app in Google Workspace
Create a custom SAML application in the Google Admin console to connect Google Workspace to CloudConnexa.
Sign in to the Google Admin console.
Navigate to Apps → Web and mobile apps.
Select Add app → Add custom SAML app.
Enter an App name such as
CloudConnexa.Select CONTINUE.
Download the Google IdP metadata
Google Workspace provides its identity provider metadata before asking you to configure the service provider details.
On the Google Identity Provider details page, select DOWNLOAD METADATA.
Save the XML file.
Select CONTINUE.
You'll import this metadata XML file into CloudConnexa in Step 4.
Configure the service provider details
On the Service provider details page, enter the values from CloudConnexa.
Configure the following fields:
Google Workspace field
Value
ACS URL
Single Sign-On URL (ACS) from Step 2
Entity ID
Issuer Name from Step 2
Leave Signed response, Name ID format, and Name ID at their defaults.
Select Continue.
Map user attributes
Google Workspace requires you to configure the user attributes that CloudConnexa will receive in SAML assertions.
On the Attribute mapping page:
Select ADD MAPPING.
Configure the following mappings:
Google Directory attribute
App attribute
Basic Information → Primary email
primaryEmailBasic Information → First name
firstNameBasic Information → Last name
lastNameVerify that the App attribute values match the table exactly, including capitalization.
CloudConnexa uses these attributes to identify users and display their information.
Optional: Include group membership in SAML assertions
If you want CloudConnexa to assign users to user groups based on their Google Workspace group membership, configure the group claim.
On the Attribute mapping page, locate Group membership (optional).
Select the Google Workspace groups you want to include in SAML assertions.
Enter
groupsas the App attribute.Verify that the selected groups include the memberships you want CloudConnexa to evaluate.
Sending group membership information doesn't automatically assign CloudConnexa user groups. You'll also need to configure SAML User Group Mapping Rules.
Finish creating the application
Select FINISH to create the custom SAML app.
Open the application in the Google Admin console.
Enable the application for users
Users need access to the custom SAML app before they can authenticate to CloudConnexa.
Open User access for the CloudConnexa application.
Choose the appropriate access setting:
To enable the application for all users, select ON for everyone.
To enable it for specific organizational units, select the organizational unit and turn on the application for that unit.
Save your changes.
Step 4: Connect Google Workspace to CloudConnexa
Now import the Google IdP metadata XML file into CloudConnexa.
Return to the SAML Setup Wizard in CloudConnexa.
Select Next Step.
Provide Google Workspace Details is displayed.
Select the option to provide Metadata XML.
Upload the Google IdP metadata XML file downloaded in Step 3.
Verify that CloudConnexa reads the metadata and displays the identity provider configuration, including the issuer and signing certificate details.
Leave Advanced Settings at their defaults.
Select Next Step.
Step 5: Review user attribute mapping
CloudConnexa uses SAML attributes to identify users and retrieve their information from Google Workspace.
The Map User Attributes step displays after you select Next Step. The wizard provides default Google Workspace mappings.
Enable Allow user attributes mapping (Optional).
Review the default mappings for Google Workspace.
CloudConnexa field
Google Directory attribute
SAML attribute name
Email Address
Basic Information → Primary email
primaryEmailUsername
Taken from the Primary email
primaryEmailGroup
Group membership (optional)
groupsFirst Name
Basic Information → First name
firstNameLast Name
Basic Information → Last name
lastNameIf the default values match what your Google Workspace application sends, leave them unchanged.
If your application sends different attributes, update the corresponding fields. Ensure each mapping matches, including capitalization.
For group mapping, the
groupsattribute must match the name of the App attribute configured under Group membership (optional).Select Next Step.
Step 6: Test SAML authentication
Test the connection before completing the configuration to confirm that CloudConnexa can authenticate users through Google Workspace.
In the wizard, the Test Google Workspace Connection step displays.
Select Sign in With SAML SSO.
Authenticate using a Google Workspace account that has access to the custom SAML app.
Review the test results. CloudConnexa checks the SAML response for:
A response received at the ACS endpoint.
A valid signature.
An issuer that matches the configuration.
An audience that matches the SP Entity ID.
An assertion timestamp within the allowed clock skew.
The wizard shows whether each check passed or failed.
Verify the user attributes
The test also displays the user information received from Google Workspace:
Email
First Name
Last Name
IdP Group
Username
If a field displays
-, CloudConnexa didn't receive a value under the expected attribute name. Compare the attribute statements in Google Workspace with the mappings from Step 5.
If the test fails
Review the check.
Correct the configuration.
Select Run Test Again.
Although the wizard allows you to continue after a failed test, we recommend resolving the errors before completing setup. Otherwise, users may be unable to authenticate.
Step 7: Review and complete the configuration
The Configuration Details step summarizes the SAML settings you've configured.
Review the following information:
Setting
What to verify
Metadata Source
The Google IdP metadata XML file
Attributes Mapped
The number of configured attribute mappings
Issuer
The issuer value received from Google Workspace
Signing Certificate
Certificate validity and expiration date
You can also review the advanced settings, including Data Binding, Authentication Lifetime, Reconnecting, Authentication Context, and Logout URL.
The wizard may display additional setup options for user group mapping and SCIM provisioning.
When you're satisfied with the configuration, select Complete.
Your SAML configuration is now available for users who have access to the custom SAML app in Google Workspace.
Manage the Google Workspace signing certificate
Google Workspace SAML signing certificates are valid for up to five years. You'll need to update the CloudConnexa configuration when the certificate is replaced or expires.
To avoid authentication interruptions:
Record the signing certificate expiration date shown in CloudConnexa.
Schedule a reminder to review the certificate before it expires.
When the certificate changes, download updated Google IdP metadata from the Google Admin console.
In CloudConnexa, navigate to Settings → User Authentication → SAML Single Sign-On → Configuration → IdP Configuration.
Import the updated metadata.
Test SAML authentication to verify that the updated certificate works.
Optional: Configure user group mapping
If you want CloudConnexa to assign users to user groups based on their IdP group membership, configure SAML user group mapping.
In the CloudConnexa Administration portal, navigate to Settings → User Authentication → SAML Single Sign-On → Configuration → User Group Mapping.
Configure mapping rules for the group information the IdP sends.
For detailed instructions, refer to Set SAML User Group Mapping Rules.
Group mapping is evaluated when users authenticate. If you change a user's group membership in the IdP, the updated mapping takes effect the next time they authenticate to CloudConnexa.
Optional: Configure SCIM provisioning
SAML authenticates users when they access CloudConnexa. You can also configure System for Cross-domain Identity Management (SCIM) 2.0 to automate user provisioning.
With SCIM provisioning, the IdP can create, update, and deactivate users in CloudConnexa without waiting for authentication.
To configure SCIM, navigate to Settings → User Authentication → SAML Single Sign-On → Configuration → SCIM 2.0.
Manage your SAML configuration
After completing the wizard, you can review or change your configuration under Settings → User Authentication → SAML Single Sign-On → Configuration.
Configuration | What you can manage |
|---|---|
IdP Configuration | Google IdP metadata, SSO endpoint, issuer, and signing certificate |
Attribute Mapping | How Google Workspace SAML attributes map to CloudConnexa user fields |
User Group Mapping | Rules for assigning CloudConnexa user groups |
SCIM 2.0 | Automatic user provisioning |
Troubleshooting
Use these checks if authentication fails or CloudConnexa doesn't receive the expected user information.
Issue | Likely cause | What to check |
|---|---|---|
The test reports that it didn't receive a response at the ACS endpoint. | Google Workspace sent the response to a different URL, or didn't use HTTP POST. | Verify that Google's ACS URL is exactly the Single Sign-On URL (ACS) from Step 2. |
The test reports a signature failure. | The signing certificate configured in CloudConnexa doesn't match the certificate Google Workspace is using. | Re-import Google's metadata (Step 7). This is expected if the certificate changed. |
The test reports an issuer mismatch. | The Issuer configured in CloudConnexa doesn't match the issuer sent by Google Workspace. | Compare the Issuer shown in Step 7 with the value in the Google Admin console. |
The test reports an audience mismatch. | Google Workspace was given the wrong Issuer Name as its Entity ID. | Check Step 2 against the value from Step 1. |
The test reports a timestamp failure. | The clocks of Google Workspace and CloudConnexa are out of sync, or the assertion has expired. | Retry the test. If it continues to fail, investigate the assertion timestamps and clock synchronization. |
The user authenticates but has no name or email. | Google sends only the Name ID unless attributes are mapped | Map Primary email, First name, and Last name under Attribute mapping, using the names in Step 5. |
The user isn't assigned to the expected CloudConnexa user group. | The group attribute isn't included in the assertion, or no matching user group mapping rule exists. | Confirm the groups selected under Group membership (optional), then check the rules in SAML User Group Mapping Rules. |
Authentication worked previously but now fails. | The Google signing certificate expired or was replaced. | Check the expiry shown in Step 7. Download the new metadata and re-import it under Configuration → IdP Configuration. |
The User can't reach CloudConnexa at all. | The app isn't turned on for the User's organizational unit. | Check the app's User access. |
Google reports that the app isn't enabled for this account. | Service status is Off for the User's organizational unit | Navigate to Apps → Web and mobile apps → the app → User access and turn it on. If the unit inherits Off, use Override. |
Everything looks correct, but authentication still fails. | Google's changes haven't propagated yet. Google states this can take up to 24 hours. | Wait, then retry in a fresh browser session before you change the configuration. |
Group mapping stops working for one group. | Group membership is an explicit list of selected groups, capped at 75. A renamed group isn't tracked. | Open Group membership (optional) again and re-add the renamed group. |
Authentication worked previously but now fails with a signature error. | The certificate was replaced. Google's SAML certificates have a five-year life. | Manage certificates under Security → Authentication → SSO with SAML applications, then re-import the metadata into CloudConnexa. |