Use a custom OpenID Connect (OIDC) connection to connect Perk to an identity provider (IdP) that supports OIDC and isn't one of Perk's OAuth options: Okta, Google Workspace, Microsoft Entra ID, or OneLogin. For example, your company's own OIDC identity provider.
SSO is available on Premium and Pro plans.
Before you start
Account admins and developers can perform this task.
Make sure that:
- You have the admin or developer role in Perk, and admin access to your identity provider.
- Your identity provider supports the OIDC authorization code flow with PKCE.
- Your identity provider has a discovery URL that ends in
/.well-known/openid-configuration. The discovery document it returns must list the authorization, token, userinfo, and JWKS endpoints. - The discovery URL and all of those endpoints are public. They can't redirect to another address.
- Your identity provider sends each employee's email address, first name, and last name. Perk needs all 3 to sign people in.
Creating Perk in your identity provider
- Go to Settings > Integrations and open Single sign-on (SSO).
- If SSO isn't on yet, select Enable. If you already have a connection, select Add connection.
- Under Select an authentication protocol, choose Custom OIDC, then select Add connection.
- In your identity provider, create a new app integration. Choose OIDC as the sign-in method and Web application as the application type.
- In Perk, copy the Redirect URI and paste it into your identity provider's redirect URI field.
Adding your identity provider's details to Perk
- From your identity provider, copy the Discovery URL and paste it into the Discovery URL field in Perk.
- Copy the Client ID and paste it into the Client ID field.
- Copy the Client secret and paste it into the Client secret field.
Mapping claims if your identity provider uses custom names
Some identity providers send email and name information under custom claim names. If yours does, tell Perk which names to read. Check your identity provider's claim or attribute settings to find them.
- If Perk reports that it can't match a user's email or name, open the Advanced settings (optional) section of the connection.
- Enter the Email claim name, Display first name claim name, and Display last name claim name that your identity provider uses.
Testing and saving the connection
- Select Test connection to check that Perk can reach your identity provider.
- If the test finds errors, such as an unreachable discovery URL, fix them and test again.
- Select Save.
Note: Save stays unavailable until Test Connection succeeds.
Your Custom OIDC connection now appears on the SSO page.
Updating the client secret
Perk hides the client secret after you save. To replace it, select Edit on the connection card, enter the new secret, and select Test connection again before you save.