Skip to content

Workspace security

Admins can require every member to use two-step sign-in, and owners can connect the workspace to the organisation’s own identity provider (single sign-on, OIDC). Both live under Workspace settings.

For your own account’s two-step sign-in, see Account and sign-in.

Workspace settings → Sign-in rules has two switches:

  • Require two-step sign-in for members
  • Require the workspace’s single sign-on

Who can change them: members with the admin scope (Admin or Owner), in the console, signed in as themselves. API tokens cannot change them.

You can only turn on a rule your current session already meets:

  • To require two-step sign-in, turn it on for yourself and sign in with it first. Otherwise: “turn on two-step sign-in for yourself and sign in with it first”.
  • To require single sign-on, set it up, sign in through it, then require it. Otherwise: “sign in with this workspace’s single sign-on first”.

When a rule is on, it is checked on every request to the workspace, from the console and from API tokens:

Rule A member who does not meet it Their API tokens
Require two-step sign-in Gets mfa_required: “This workspace requires two-step sign-in. Turn it on under Security, then sign in again.” They can still reach Security to turn it on. Tokens created from a session without two-step sign-in stop working (mfa_required). Create new ones after signing in with a code.
Require single sign-on Gets sso_required: “This workspace requires its single sign-on.” Tokens not created from a single sign-on session stop working (sso_required).

A session started through the workspace’s single sign-on counts as two-step sign-in for that workspace when the identity provider reports that the person used MFA. It never replaces the person’s own two-step sign-in elsewhere.

Workspace single sign-on lets members sign in through your organisation’s OpenID Connect (OIDC) identity provider.

Only owners can set up, change or remove it, because whoever runs the identity provider can sign in as every member who linked it.

  1. In your identity provider, register an OIDC web application. Use the redirect URL that the console shows under Redirect URL to register with your identity provider:

    https://console.mayadyn.com/v1/auth/sso/callback
  2. In Mayadyn, open Workspace settings → Single sign-on (OIDC).

  3. Fill in:

    Field Value
    Issuer URL (https) Your provider’s issuer, starting with https://. It must serve OIDC discovery and be reachable on the public internet.
    Client ID From the application you registered.
    Client secret From the application. It is stored encrypted and never shown again.
    Allowed email domains Optional. Comma-separated, e.g. acme.com. When set, only identities whose email is in one of these domains may sign in. Empty means no domain restriction.
  4. Choose Save. Mayadyn checks that the issuer answers OIDC discovery before saving.

Changing the issuer starts over: links made with the old provider no longer work, and each member links the new one.

Single sign-on never creates accounts and never links them by email. Each member links it once, from their own account:

  1. Sign in to Mayadyn as yourself (password, Google or Microsoft).
  2. Open Security and choose Link <workspace>’s single sign-on.
  3. Complete the sign-in at the identity provider.

From then on, the member can sign in from the sign-in page: under Workspace single sign-on, enter the Workspace ID and choose Continue.

People who are not members are refused (not_member): “This workspace’s sign-on is for its members only. Ask an admin to invite you.” An identity that nobody linked is refused (not_linked): sign in as usual, then link it under Security. A link works only while the person is a member.

A session started through the workspace’s single sign-on is confined to that workspace. It cannot open other workspaces, answer invitations, change account settings (two-step sign-in, linked methods) or link other sign-in methods. Sign in as yourself for those.

Choose Remove single sign-on. This is refused while Require the workspace’s single sign-on is on: turn that rule off first.

Changes to sign-in rules and to single sign-on settings are recorded in the audit log (“Changed sign-in rules”, “Changed single sign-on settings”).