SHADE is young: 0.1.0-next.2 is a pre-release, and 0.1.0 isn't out yet.

SHADE
People, security and privacy

Signing in through an identity provider (team)

Admins and editors can sign in to the admin with the account their organisation already gives them: Microsoft Entra ID (Microsoft 365), Google Workspace or Keycloak. They press a button on the sign-in page, sign in at the provider, and come back signed in. The provider only says who someone is; what they may do is still decided by their role in SHADE.

This page is about the team. Accounts on the website do not sign in this way: see Accounts.

What users can do

Team members

  • Sign in with Sign in with Microsoft, Sign in with Google or Sign in with your organisation's account (Keycloak) on the sign-in page, for each provider that is set up.
  • Sign in with their password or a passkey as before, unless editors are made to use the provider (below).

Admins

  • Invite a team member with the address they have at the provider. Their first sign-in through it accepts the invitation, if the provider confirms the address; they never need a password.
  • See the providers on the Team screen, read-only: which are set, the email domains, whether editors must use them, and the redirect address to register at each provider.

Whoever runs the instance

  • Sets the providers, the domains and the choice to make editors use them, in the environment (Setting it up). Nobody can change them in the admin, not even an admin.

Limits

  • Nobody gets an account by signing in: an address the team does not know is refused. Invite the person first (Team and roles).
  • AI team members and inactive team members are refused, as with a password.
  • One instance has one tenant (Microsoft), one Google Workspace and one Keycloak realm at most.

Who may do it

ActionPermissionRoles
Sign in through a provideran invited, active team member with the same addressadmin, editor; ai: never
See the providers on the Team screenteam.manageadmin
Set the providersthe instance's environmentwhoever runs the instance

In the admin

Sign-in page. Above the email and password, one button per provider, then or. When editors must use a provider, the page says "Editors sign in through your organisation's account. Only admins can use a password here." When the provider or SHADE refuses a sign-in, the page shows one message, whatever the reason: "Signing in through your organisation's account did not work. Ask an admin whether you were invited with this address."

Team screen (admins): the card Sign-in through identity providers lists each provider with its Redirect address, the Email domains and how Editors sign in. It shows nothing when no provider is set.

The admin is also available in Dutch; the labels above are the English ones.

On the website

Nothing: this is for the admin only.

Setting it up

  1. Register SHADE at the provider as a web application, with the redirect address <admin address>/api/auth/callback/<provider>, where the provider is microsoft, google or keycloak (for example https://admin.example.org/api/auth/callback/microsoft). The admin address is SHADE_ADMIN_URL, or SHADE_API_URL when the admin has no address of its own.
  2. Set the provider's variables on every container (Coolify, Own server by hand), and restart.
VariableWhat
SHADE_OIDC_MICROSOFT_TENANT_ID, SHADE_OIDC_MICROSOFT_CLIENT_ID, SHADE_OIDC_MICROSOFT_CLIENT_SECRETMicrosoft Entra ID: the tenant's id (a GUID, never common or organizations), the application's id and a client secret
SHADE_OIDC_GOOGLE_CLIENT_ID, SHADE_OIDC_GOOGLE_CLIENT_SECRETGoogle Workspace: the OAuth client's id and secret
SHADE_OIDC_KEYCLOAK_ISSUER, SHADE_OIDC_KEYCLOAK_CLIENT_ID, SHADE_OIDC_KEYCLOAK_CLIENT_SECRETKeycloak: the realm's address (https://login.example.org/realms/team), the client's id and secret
SHADE_OIDC_DOMAINSRequired with a provider: the email domains team members' addresses are in, comma-separated (example.org, voorbeeld.nl)
SHADE_OIDC_REQUIREDOptional, false by default: true makes editors sign in only through a provider

A provider is on when its client id is set. SHADE refuses to start when a provider is only set in part, when the tenant is not a GUID, when the Keycloak address is not https, or when domains are missing.

What the operator still has to do

  • Two-factor at the provider. After a provider's sign-in SHADE asks for no code of its own: the provider's two-factor counts. Require it there (Microsoft's Conditional Access, Google's 2-Step Verification, Keycloak's required actions).
  • Deactivate in SHADE when someone leaves. Turning off their account at the provider stops new sign-ins, but a session already open lasts until it expires (14 days without activity). Deactivating the team member in SHADE ends their sessions at once (Team and roles).
  • Keep the client secrets in the environment only, like APP_SECRET, and renew them before the provider's expiry date.

Rules and limits

  • The address decides, nothing else. SHADE reads only the provider's email, never a user name or display name, and signs in the active team member with exactly that address (case-insensitive). The address must be in SHADE_OIDC_DOMAINS, and:
    • Microsoft: the sign-in must come from the configured tenant, so a guest from another organisation is refused.
    • Google: the address must be verified and belong to the Workspace domain (a personal Google account is refused, even with an address in the domain).
    • Keycloak: the realm must have verified the address.
  • Changing an address ends the link. When a team member's address changes, or they become an AI team member, SHADE forgets their provider sign-ins; the next one must match the new address.
  • No provider tokens kept. SHADE keeps only which provider account belongs to which team member, never the provider's tokens, and asks only for openid email profile.
  • A safe exchange. Each sign-in uses PKCE, a state tied to the browser and a nonce, and the provider's signed ID token is checked against its published keys. Signing in with a token sent from a browser is refused.
  • Editors made to use the provider (SHADE_OIDC_REQUIRED): their password is refused with "Sign in through your organisation's account", Forgot your password? sends them nothing, and an admin cannot invite an editor by email (add them, then they sign in through the provider). Admins keep their password, so the instance can be reached when the provider cannot.
  • Outside calls. At sign-in SHADE calls the provider's own addresses: its discovery document, token endpoint and keys. That is the provider the operator chose; Microsoft and Google may process the sign-in outside the EU.
  • Rate limits. Starting a sign-in and the provider's answer each have their own limit per network address (Request protection).

Audit entries (see Audit log)

ActionWhenSummary
team.logina sign-in through a provider (method oidc)Signed in
team.login-faileda sign-in the provider or SHADE refused (method oidc, with the provider)Failed sign-in

For developers

The code and its tests: shade/features/team/README.md in the shade repository, and decision 0009 point 10.