Skip to content

triauth for EspoCRMOIDC

Let your sales and support teams open EspoCRM with one approval on their own device, and no EspoCRM passwords.

  • CRM and sales
  • Open source
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

  1. 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.php with your own address. Copy it.

  2. 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.

  3. Back in EspoCRM, fill in the fields below with your domain in place of example.com, tick OIDC Create User, and save.

    FieldValue
    OIDC Client ID and OIDC Client Secretfrom the bridge
    OIDC Authorization Endpointhttps://oidc.triauth.org/example.com/authorize
    OIDC Token Endpointhttps://oidc.triauth.org/example.com/token
    OIDC UserInfo Endpointhttps://oidc.triauth.org/example.com/userinfo
    OIDC JSON Web Key Set Endpointhttps://oidc.triauth.org/example.com/jwks
    OIDC Scopesprofile and email
    OIDC Username Claimpreferred_username
  4. Sign 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 groups and 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

SettingValue
Redirect addresshttps://<your-espocrm>/oauth-callback.php, shown read-only on the form
Where in EspoCRMAdministration › Authentication, method OIDC
Addressesthe four addresses go in one by one, as above, since EspoCRM does not read the discovery document
Username Claimpreferred_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 loginOIDC 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

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.