For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
Article

OpenID connect SSO

Use with AI:Rippling AI ChatGPT Claude Cursor

Overview​

The OpenID Connect (OIDC) is an identity layer built on top of OAuth 2.0 framework. OIDC-based SSO is one of two SSO options supported by Rippling.

If OIDC SSO is configured for the app listing, all customers must enable it during their initial integration setup.

The OIDC flow should only be used after your app is installed in Rippling. The OIDC flow should only be used to enable users to single sign-on from Rippling to your software or vice-versa. The OIDC authorize endpoint should not be used as part the initial app installation flow or integration set up.

Please first read the Installation OAuth guide to understand how to configure your app installation flow, redeem an authorization code for access & refresh tokens, complete and mark the app as installed in Rippling, and successfully gain access to call Rippling APIs for a Rippling company.

As part of the initial installation flow, the Rippling company admin will grant authorization and consent to the scopes configured in your app. As part of those scopes, openid will need to be included to grant your app access to use Rippling's OIDC functionality.

Once you have your installation flow working and your app installed, you can then use the OIDC authorize flow anytime a user wants to SSO from Rippling to your software or from your software to Rippling.

OIDC sequence diagram​

openid1

OIDC sequence details​

Initial install

Admin installs your app in Rippling. You now have access to an access token and refresh token from the installation flow. openid2

SSO tile

Employees who meet the access rules configured in your app now will see the SSO tile on their Rippling home screen. openid3

Click SSO tile

Employee clicks on the SSO tile. This will bring the employee to the SSO URL configured in your app. openid4

Initial routing

Your application should then route the employee to the Rippling OIDC Authorization URL (/oidc/v1/authorize) with the correct parameters. Example:

https://app.rippling.com/oidc/v1/authorize?response_type=code&scope=openid%20profile%20email%20address%20phone&client_id=nG127yAkBB0qTJTY7nEWdGPqIhqsBLUWt6qFp5d5W&state=stateexample&redirect_uri=https://oauth.pstmn.io/v1/callback

Redirect

Rippling will then redirect back to the redirect URL you passed in as a parameter (assuming this URL is already configured in your app) along with the authorization code.

https://oauth.pstmn.io/v1/callback?code=SVJqqnlPjzviET3mFajGeQBxRHcNVrA1&state=stateexample

Redeem authorization code

Your application then takes the authorization code and redeems it via the POST /api/o/token endpoint. You exchange the authorization code for tokens.

https://api.rippling.com/api/o/token/?grant_type=authorization_code&code=SVJqqnlPjzviAmFajATF6eQBxRHcNVrA1&redirect_uri=https://oauth.pstmn.io/v1/callback

Tokens received

Your application receives tokens from Rippling.

{
"access_token": "5mIjAfhs7qKVwh5qH1u4CQLM39zArut72",
"expires_in": 129600,
"token_type": "Bearer",
"scope": "employee:read openid company:read",
"refresh_token": "Mbk9ie4tswcZtNiGMc7Hab6mjQfZ8ZsP",
"id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjEifQ.eyJzdWIiOiI1ODNmZDhiNzNiZjIwN2NhYjgwMjcxZGEiLCJyb2xlX2lkIjoiNTgzZmQ4YjczYmYyMDdjYWI4MDI3MWY0IiwiaXNzIjoiaHR0cHM6Ly9hcHAucmlwcGxpbmcuY29tIiwiYXVkIjoibkcxMjd5QWtCQjBxVEpUWTduVGRHUHFJaHFzQkxVV3Q2cUZwNWQ1VyIsImlhdCI6MTcwMTM4MDk5NCwiZXhwIjoxNzAxMzg0NTk0fQ.J-yORMqyaNfimU4OJ8-iVTRPtMZ-iNuYeG-Jauf65cEVG5kZT3tRPMzCOFHrUPF0bvTl9Cbb0ZHeuRvR8YArGDNygbXTZPINTLEcLQUjPkDizjiohZm5kBrGGZSXllZVDBa97a9T-tHgwrKlRC9erPvbM63l5NER12kjxh0Czi7ogsIn08BudXaqpitDjwEORVjXB8SQivuOTsdbednjjEUiihN9FuAPV98VTjSFM-KiRfQS4aa1cPq-81zjwqaLYHQASKcdrMVrYycAtJWabjd37yKoiy-JVPnsJ7KWjxXs_lm70jHu4uVRHTRBNVlcsv4XMDElAg-OMHQVsF06oQX-rgznWIaiThXe4NPH9txA7hVl-qVyeRD6UQ9eZwv0jAGL1r9QXAJ0DGpPQZH_zPo0Fpf3PS9ODg-0g2nzMkfdSyqLfy6EE_ocEYFgtwFcX2s0PvddKj56ewrrVZG6acrEjcPyDtdD-coiXEcQzDrNiShII-AaxTC8ugJTqaMQu1Ykg7U0z4DfOdjAyzfB0ItFQu453KbK9FkvdSlWxpcFjTSIMbwooTLbGmK_1M2lx05iVzhEu40YTeaA2aJezeJil7qixWCsqBUFtbUdrcHwXJlE5YttvQlzxn6P6BAxEqyLZXiJD2m0G8iLctagau8FFDMJdAQOqBuED1kZnZM"
}

User validation

Your application now validates the user information associated with the token.

OIDC components​

Configure the URLs for OIDC SSO

You are responsible for ensuring that your app is configured with the correct URLs to power the OIDC SSO flow. There are two types of URLs that are configurable: the SSO URL and the Redirect URL(s).

Before initiating any OIDC testing, ensure that the URLs configured in your application are complete. Missing URLs will cause the testing to fail.

  • Single Sign-On (SSO) URL: The SSO URL controls where the user is directed to when they click on your app's SSO tile on the Rippling home page. It is the URL that users will be taken to when they want to SSO in to your application from Rippling. This is a mandatory field to configure for OIDC SSO. You can only have one SSO URL for your app. The SSO URL won’t include any parameters for OIDC SSO flows. For OIDC flows, think of this URL as the mechanism to trigger the SP-initiated flow from your app to Rippling. When a user clicks on the SSO tile from Rippling, they will be brought to the configured SSO URL in your app from which your application should then to trigger the SP-Initiated OIDC SSO flow.

  • Redirect URL(s): The Redirect URL(s) controls where Rippling sends the user to your app after they've retrieved the authorization code from Rippling. There is a Default Redirect URL that will be used everytime a user goes to install your app from Rippling. This URL is not important to the OIDC SSO flow unless you choose to use it for the SSO flow as well.

Rippling does support multiple redirect URLs in your app and these can be used during the OIDC SSO flow.

Rippling will only use redirect URIs that have already been configured in your app. Rippling will not redirect to any URL that is passed as a parameter unless it has been configured as an additional redirect URL.

Make OIDC authorization request

To send an authentication request, your server will need to make a /GET request containing the desired parameters sent to the Authorization Server.

This URL is https://app.rippling.com/oidc/v1/authorize.

Auth Query ParametersDescription
Response_typeinput the value code
scopeRequired scopes: openid profile email address phone separated by space
redirect_uriThe URL on Rippling that the user should be sent back to once the OAuth setup is done. This must match what was provided in the partner package.
stateA state string that can be used to remember the state of interaction with the end user.
client_idThe client_id Rippling provides you with

Receive authorization code from Rippling

Rippling will then authenticate and direct the end-user back to the client along with an authorization code.

https://client.example.com/v1/callback?code=7IudMqOgZBwgqU6ZimPVIRNpWj3uw4&state=enter_state_status

Redeem authorization code for tokens

To retrieve your tokens (access, refresh, & id token), your server will need to make a POST request to the API Token URL. In production, this URL is https://api.rippling.com/api/o/token/​. This is the same API Token URL that you use during the initial OAuth installation flow.

The POST request should include a basic auth header with base64 encoded <clientid>:<clientsecret>, along with the following parameters.

Auth Query ParametersDescription
grant_typeThis should just be static and configured as authorization_code
codeInput the authorization code that was sent in the redirect
redirect_uriYour redirect URL. This must match the redirect URL configured in the app listing

Return claims about the authenticated user

There are two ways in which you can return claims about the currently authenticated end user. You can do so through using the GET /userinfo endpoint or decoding the JWT. While there are two options, Rippling recommends that you use the /userinfo endpoint.

Fetch refresh tokens

To retrieve a refresh token, send a POST request to the same URL https://api.rippling.com/api/o/token/​ with basic auth and the following form parameters. The request should use basic auth and requires client ID and secret (basic auth header with base 64 encoded <clientid>:>clientsecret>Tokens are valid for three days or until refreshed. When the POST request is made to retreive a new token, the current token becomes invalidated.

Refresh Query ParametersDescription
grant_typerefresh_token
refresh_tokenRefresh token from the initial grant

Fetch public keys from the JWKS endpoint (optional)

The JWKS API implements the JWKS_URI as specified here. The endpoint returns JWKS containing public keys that enable clients to validate a JSON Web Token (JWT) issued by the OIDC Provider.

The URL is: https://rest.ripplingapis.com/jwks-keys

While partners can choose to configure their app as they see fit to support their integration, based on our partners' experience, we have seen the following OIDC implementation work for other partners.

SSO URL

Redirect URLs

The /sso/rippling/authorize URL should be configured as your SSO URL. This URL will ONLY be used after the customer has succesfully installed your app in Rippling. The SSO URL controls where the user is directed to when they click on your app's tile on the Rippling home page in the Single Sign-On navigation bar. The SSO URL won’t include any parameters for OIDC SSO flows because Rippling does not support IDP-initiated flows, so think of this URL as the mechanism to trigger the SP-initiated SSO flow from your app to Rippling.

The /oauth/rippling Redirect URL should be configured as your Default Redirect URL. Your Default Redirect URL is the URL that will be used during the installation flow in Rippling of your app. Specifically, it will be used when the customer clicks on Redirect from the "Redirect" screen in the installation flow of your app in Rippling.

The /sso/rippling URL is the URL that should be configured as your secondary redirect URL. This URL will not be used during the app installation process and will only be used during the SSO flow. It is the redirect URL used when the SP-Initiated OIDC SSO flow has been triggered from your app.

While you can change the labels/names of your URLs as you see fit, we've had partners provide feedback that differentiating the names has been helpful for troubleshooting.

Requirements​

To understand the OIDC SSO requirements expected from apps in the Rippling App Shop, refer to our Partner Requirements.

FAQs​

Need Support?

If you're a partner seeking answers or encountering difficulties while integrating with Rippling, please contact us at partner.support@rippling.com. Ensure our responses reach you by preventing emails from this address from being filtered into your spam folder.