External identity provider setup
DevRev can be configured to use external identity providers for SSO.
If you want DevRev to use an external identity provider, follow the instructions for your organization’s provider.
Before you begin
To register DevRev as a SAML 2.0 application, you need the slug for your dev org.
To get the dev_oid and slug, run the following command:
1 curl --location --request GET 'https://api.devrev.ai/internal/dev-orgs.self.get' \2 --header 'Authorization: <your PAT>'
In the response, the dev_oid is returned as the display_id.
Ensure the connection_name combines the dev_oid prefix with a custom string and matches the regex pattern:
1 ^`[a-zA-Z0-9]`(-`[a-zA-Z0-9]`|`[a-zA-Z0-9]`)*$
This means it should:
- Start with an alphanumeric character.
- Contain alphanumeric characters or hyphens, without consecutive or trailing hyphens.
The API call to create the connection fails if this pattern is not followed.
Identity providers
You can register DevRev as an identity provider in any of the following services.