Get started

Single sign-on (SSO) for teams

Let your team sign in to Duscode with Google Workspace, Microsoft Entra ID, GitHub or any OpenID Connect provider, join by work email, and require it for members.

On the Team plan, the team owner can connect your company's sign-in provider. Your team then signs in with their work account, people at your company's email domain join the team on their first sign-in, and you can require single sign-on for everyone but yourself.

Single sign-on is part of the Team plan. Only the team owner can set it up.

Before you start

You need:

  • the Team plan, as the team owner;
  • two-step sign-in on your own account, if you want to require single sign-on (Account → Security and your data);
  • access to your provider's admin console, and to your domain's DNS (to add one TXT record).

Every change on the single sign-on page asks for a recent sign-in, your password or a code from your authenticator app, like other security changes.

Open the single sign-on page

  1. Sign in at cloud.duscode.com and open Account.
  2. In the Team section, choose Single sign-on.

The page has three steps: connect your provider, verify your email domain, turn it on. It shows your redirect URI, which you give to your provider:

https://cloud.duscode.com/sso/callback

Step 1: connect your provider

Create an app (a "client") with your provider, then paste its Client ID and Client secret into Duscode and choose Connect provider. The secret is stored encrypted and never shown again; to change it, paste a new one.

Google Workspace

  1. In the Google Cloud console, open APIs & Services → OAuth consent screen and set the user type to Internal (only your Workspace's accounts).
  2. Open Credentials → Create credentials → OAuth client ID, choose Web application.
  3. Under Authorized redirect URIs, add the redirect URI above.
  4. Copy the client ID and secret into Duscode, with the provider set to Google Workspace.

Scopes: openid email profile. Duscode only accepts Workspace accounts at your verified domain, not personal Google accounts using a work address.

Microsoft Entra ID

  1. In the Entra admin centre, open App registrations → New registration. Choose Accounts in this organizational directory only, platform Web, and the redirect URI above.
  2. Under Certificates & secrets, create a client secret.
  3. Under Token configuration → Add optional claim → ID, add email and xms_edov. Duscode needs Microsoft to confirm the address is on a domain verified in your directory.
  4. In Duscode, choose Microsoft Entra ID, and enter the Directory (tenant) ID from the app's Overview page with the Application (client) ID and the secret.

Scopes: openid email profile. Duscode refuses common, organizations and consumers as the tenant: they would let any Microsoft account try to sign in.

GitHub

  1. In GitHub, open your organisation's Settings → Developer settings → OAuth Apps → New OAuth App.
  2. Set the Authorization callback URL to the redirect URI above.
  3. Generate a client secret, and copy the Client ID and secret into Duscode with the provider set to GitHub.

Scopes: read:user user:email. GitHub doesn't send ID tokens, so Duscode reads the account's verified email addresses from GitHub and uses the one at your verified domain. People need that address verified in GitHub → Settings → Emails.

Another OpenID Connect provider

Okta, Auth0, Keycloak, JumpCloud, OneLogin and other OpenID Connect providers work the same way:

  1. Create a web application using the authorization code flow (Duscode always uses PKCE with S256).
  2. Add the redirect URI above, and allow the scopes openid email profile.
  3. In Duscode, choose Another OpenID Connect provider and enter the Issuer URL (for example https://example.okta.com), the client ID and the secret.

Duscode reads <issuer>/.well-known/openid-configuration when you save, so a wrong issuer shows up straight away. The provider must send email_verified: true.

Step 2: verify your email domain

Single sign-on works only for addresses at domains your team has proved it owns. This stops any provider from vouching for someone else's address.

  1. Under Verify your email domain, enter the part after the @ (for example example.com) and choose whether people from it join as Members or Admins.
  2. At your DNS host, add the TXT record the page shows: the name is _duscode-challenge.example.com, the value starts with duscode-domain-verification=.
  3. Choose Check DNS now. DNS changes can take up to an hour to appear.

A domain can be verified by one Duscode team only. Shared mailbox domains such as gmail.com can't be added. You can add up to 20 domains.

Step 3: turn it on

Choose Turn single sign-on on. People at your verified domains can now choose Sign in with single sign-on (SSO) on the sign-in page, enter their work email, and sign in with their work account.

  • Joining by domain: with People at a verified domain join the team on their first sign-in ticked (the default), someone at your domain without a seat joins on their first sign-in, with the role set for their domain, as long as a seat is free. Someone new to Duscode accepts the Terms first. Untick it to keep the team invite-only.
  • Require it: choose Members must use single sign-on. Members can then sign in only through your provider: a password sign-in is refused with a message pointing to single sign-on, and asking for an emailed link sends an email that points to single sign-on instead of a link.

The owner's way in (break-glass)

The requirement never applies to the team owner. You keep your password or emailed link, with two-step sign-in, so a provider outage or a wrong setting can't lock you out. That is why requiring single sign-on needs two-step sign-in on your own account first.

If the Team plan ends, single sign-on stops and so does the requirement: members sign in with emailed links or passwords again.

Everything is recorded

Saving the provider, turning single sign-on on or off, requiring it, adding, verifying or removing a domain, every single sign-on sign-in, every person who joins by domain and every refused sign-in (with the reason) is recorded in Duscode Cloud's audit log.

If something goes wrong

  • "No Duscode team signs in with single sign-on at …": the domain isn't verified, or single sign-on is off. Sign in with an emailed link, or ask your team owner.
  • "… is not at a domain your team verified": sign in with your work account, not a personal one.
  • "This sign-in did not start in this browser, or it expired": start again from the sign-in page, in the same browser, within 10 minutes.
  • "Microsoft did not confirm this address …": add the xms_edov optional claim (step 1, Microsoft Entra ID).
  • "Your account is on another Duscode team": leave that team on your account page first.
  • "Your team has no free seat": the owner adds seats in Manage billing.

Something missing or wrong? Email support@duscode.com.