triauth for EspoCRMOIDC
Let your sales and support teams open EspoCRM with one approval on their own device, and no EspoCRM passwords.
- Sign-in through
- OpenID Connect bridge
- Available in
- EspoCRM 7.3 and newer
- Set up in
- Administration › Authentication
About EspoCRM
EspoCRM is a customer relationship management system: a shared address book of contacts and companies with the deals, support cases, emails, and tasks attached to each. Sales and support teams use it to track who they talked to and what happens next.
Connect EspoCRM to triauth
EspoCRM signs people in through the triauth OpenID Connect bridge. Once connected, clicking Sign in on EspoCRM opens a page that asks for the person's username, and their own device asks them to approve. Nobody keeps an EspoCRM password, and when someone leaves, removing their identity records at your domain ends their access to EspoCRM as well.
How it works
In EspoCRM, open Administration › Authentication and choose OIDC as the authentication method. The form shows the OIDC Authorization Redirect URI,
https://crm.example.com/oauth-callback.phpwith your own address. Copy it.Open oidc.triauth.org and enter your domain. Paste the redirect URI and click Connect app. The bridge gives you a client ID and a client secret.
Back in EspoCRM, fill in the fields below with your domain in place of
example.com, tick OIDC Create User, and save.Field Value OIDC Client ID and OIDC Client Secret from the bridge OIDC Authorization Endpoint https://oidc.triauth.org/example.com/authorizeOIDC Token Endpoint https://oidc.triauth.org/example.com/tokenOIDC UserInfo Endpoint https://oidc.triauth.org/example.com/userinfoOIDC JSON Web Key Set Endpoint https://oidc.triauth.org/example.com/jwksOIDC Scopes profileandemailOIDC Username Claim preferred_usernameSign out and click Sign in.
Checkpoint
Clicking Sign in on EspoCRM opens a page from the bridge that asks for the username, and the person's authenticator asks them to approve.
Good to know
- With OIDC Create User on, everyone with an identity at your domain gets an EspoCRM user the first time they sign in. A person whose EspoCRM user name equals their username, such as
john, signs in to that existing account, so check who holds which name before you switch. To let only one team in, limit the app to a group when you connect it. - Set OIDC Group Claim to
groupsand map the groups published at your domain to EspoCRM teams under OIDC Teams. OIDC Sync Teams keeps them in step at every sign-in. - EspoCRM's own two-factor authentication does not apply to this sign-in, since the approval on the person's device already is a second factor.
For the person who connects the app
| Setting | Value |
|---|---|
| Redirect address | https://<your-espocrm>/oauth-callback.php, shown read-only on the form |
| Where in EspoCRM | Administration › Authentication, method OIDC |
| Addresses | the four addresses go in one by one, as above, since EspoCRM does not read the discovery document |
| Username Claim | preferred_username, so that user names are the short usernames from your domain, which EspoCRM keeps as they are, up to 50 characters. email keys accounts on the full identifier instead, at the cost of long user names |
| Fallback login | OIDC Fallback Login keeps the password form reachable while you switch |
EspoCRM keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. EspoCRM's OIDC guide explains every field, including portals.
Next steps
- Read the OpenID Connect bridge page for what every connected app gets and what the bridge keeps private.
- Read Roll out to your team to give everyone in your organization an identifier at your domain.
- Read Groups to publish teams and map them to EspoCRM teams.
- Read EspoCRM's OIDC guide for every setting EspoCRM offers.
All logos and trademarks belong to their respective owners and do not imply affiliation or endorsement of the organization or product by triauth, nor vice versa. The content provided on this page may include information from third-party sources. We do not assume any responsibility for the completeness, correctness, or applicability of the information. You should independently verify any details before relying on them.