RandomCoffee Help Center
Type to search documentation.

Single sign-on (SSO)

Connect RandomCoffee to your SAML identity provider (Okta, Microsoft Entra ID or OneLogin) so your team signs in with one set of credentials.

Single sign-on (SSO) lets your team use one set of login credentials, managed by your identity provider, to access RandomCoffee and your other applications. RandomCoffee supports SSO with SAML 2.0.

SSO is available on the Enterprise plan.

This article covers the setup with Okta, Microsoft Entra ID (formerly Azure AD) and OneLogin. The RandomCoffee side is the same for every provider: only the configuration in your identity provider changes.

What RandomCoffee expects

SAML elementExpected value
Name IDThe user’s email address (format EmailAddress). RandomCoffee identifies users by this email.
first_name attributeThe user’s first name
last_name attributeThe user’s last name

The attribute names must be exactly first_name and last_name, in lowercase with an underscore.

Once SSO is saved, everyone in your workspace, you included, must sign in through your identity provider to open RandomCoffee. Assign yourself to the RandomCoffee application in your identity provider before you save the configuration.

Step 1: Get the RandomCoffee details

  1. Open the SSO settings.

    In RandomCoffee, go to “Settings” > “Configuration” and click the “Single Sign-On (SSO)” card. You can also open https://app.random-coffee.com/account/<your-workspace>/admin/settings/integrations/sso, where <your-workspace> is the name of your workspace as it appears in your RandomCoffee address.

  2. Open the “Service Provider” tab.

    It lists the details to enter in your identity provider:

    FieldWhat it is
    “RelayState”Identifies your workspace when a user starts the sign-in from the identity provider’s portal.
    “Entity ID”The issuer of the SAML requests sent by RandomCoffee, and the expected audience of the SAML responses.
    “Login URL”A shortcut URL that starts the sign-in from RandomCoffee.
    “ACS URL”The Assertion Consumer Service URL, where your identity provider sends the SAML assertion.
    “Encryption Certificate”The public key certificate used to encrypt the SAML assertion. Click “Download as file” to save it.

    Keep this tab open: you copy these values in the next step.

Whatever your provider, the fields match as follows:

RandomCoffee fieldOktaMicrosoft Entra IDOneLogin
“Entity ID”Audience URI (SP Entity ID)Identifier (Entity ID)Audience (EntityID)
“ACS URL”Single sign on URLReply URL (Assertion Consumer Service URL)Recipient, and ACS (Consumer) URL
“Login URL”Not neededSign on URLLogin URL
“RelayState”Default RelayStateRelay StateNot needed in the steps below

RandomCoffee needs the RelayState to know which workspace a sign-in belongs to. If your users open RandomCoffee from your identity provider’s portal, enter the “RelayState” value in your provider’s default relay state field.

Step 2: Configure your identity provider

Choose your identity provider below.

  1. Create the application.

    In Okta, click “Admin” to open the admin dashboard, then click “Add Applications” and “Create New App”. Select “Web” as the platform and “SAML 2.0” as the sign-on method, then click “Create”.

  2. Name the application.

    In “General Settings”, enter an application name (for example, “RandomCoffee”), then click “Next”.

  3. Enter the SAML settings.

    In “Configure SAML”, section “SAML Settings”, enter the RandomCoffee details:

    Okta fieldValue
    Single sign on URLThe “ACS URL” from RandomCoffee
    Audience URI (SP Entity ID)The “Entity ID” from RandomCoffee
    Default RelayStateThe “RelayState” from RandomCoffee
    Name ID formatEmailAddress
    Application usernameThe user’s email address
  4. Set the advanced settings.

    Click “Show Advanced Settings” and make sure the options match these values:

    OptionValue
    ResponseSigned
    Assertion SignatureSigned
    Signature AlgorithmRSA-SHA256
    Digest AlgorithmSHA256
    Assertion EncryptionEncrypted
    Encryption AlgorithmAES128-CBC
    Key Transport AlgorithmRSA-1.5
    Encryption CertificateUpload the file you downloaded with “Download as file” in RandomCoffee
    Enable Single LogoutUnchecked
    Authentication context classPasswordProtectedTransport
    Honor Force AuthenticationYes
  5. Add the attribute statements.

    Scroll down to “Attribute Statements” and add these name and value pairs:

    NameValue
    first_nameuser.firstName
    last_nameuser.lastName

    Then click “Next”.

  6. Finish the application.

    In “Feedback”, select “I’m an Okta customer adding an internal app”, check “This is an internal app that we have created”, then click “Finish”.

  7. Copy the identity provider details.

    Go to the “Sign On” tab and click “View Setup Instructions”. Copy the “Identity Provider Single Sign-On URL”, the “Identity Provider Issuer” and the “X.509 Certificate”: you enter them in RandomCoffee in step 3 below.

Step 3: Enter your identity provider details in RandomCoffee

  1. Open the “Identity Provider” tab.

    Back in the RandomCoffee SSO settings, open the “Identity Provider” tab.

  2. Add the identity provider details.

    Upload the metadata file from your provider in “Identity Provider Metadata File” with “Upload file”. The “Identity Provider SSO URL”, “Identity Provider Issuer” and “X.509 Certificate” fields fill in automatically.

    If you do not have a metadata file (for example with Okta), paste the three values you copied from your provider into these fields.

  3. Set the sign-in button and the domains.

    • “Display name”: the name of your provider (for example, “Okta”). The RandomCoffee login page shows a “Log in with” button with this name.
    • “IdP Domains”: the email domains of your users, separated by commas (for example, example1.com, example2.com). Users whose email is on one of these domains can sign in with SSO. List every domain your members use: a sign-in started from the RandomCoffee login page with an email on another domain is refused.
  4. Choose whether to create accounts automatically.

    Check “Automatically add new members using this authentication method to my team.” if people who are not yet RandomCoffee members should be added to your workspace the first time they sign in with SSO. If you leave it unchecked, only existing members can access your workspace with SSO.

  5. Save.

    Click “Save Authentication”.

To remove the configuration later, open the same tab and click “Delete”.

Step 4: Test the sign-in

Make sure the people who need RandomCoffee are assigned to the application in your identity provider. Then test with your own account:

  • From RandomCoffee: go to the login page and enter your email address. A “Log in with” button with your display name appears: click it and sign in with your identity provider.
  • From your identity provider: open RandomCoffee from your provider’s portal. This requires the “RelayState” in your provider’s configuration.

Users must sign in to their identity provider with the same email address as the one they entered on the RandomCoffee login page.

When SSO is active, the password reset policy does not apply: passwords are managed by your identity provider.

If you have any question, contact support@random-coffee.com.