Skip to content

Identity and sign-in (OpenID Connect)

Module: quality-data (the core).

People sign in once, at the core, and enter every module with that session. The core is an identity provider that speaks OpenID Connect (OIDCOpenID Connect A standard for signing in through an external identity provider, such as the organisation's corporate account.), the standard sign-in protocol built on OAuth 2.0. Every module with screens of its own, such as Grafana or Superset, is a client of it: it sends the person to the core to sign in and gets back who they are and what roles they have there.

The accounts are the core’s. A person can sign in with:

  • a local account and its password;
  • the organisation’s directory, over LDAPLightweight Directory Access Protocol The standard way to look up people in an organisation's user directory, so they can sign in with the account they already use at work., such as Active Directory;
  • an external provider that speaks OIDCOpenID Connect A standard for signing in through an external identity provider, such as the organisation's corporate account., such as Microsoft Entra ID or Google, linked to an existing account.

Setting these up is described in Mail, sign-in and updates.

  • A module with its own sign-in gets the person’s roles in its tokens, computed from the platform’s policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer., for example whether a person is a viewer or an administrator in Grafana.
  • When one module calls another on behalf of a person, the call carries that person: it is allowed only if both the person and the calling module may do it.
  • Machines and services that call the core on their own get short-lived tokens of their own, limited to what their module declares it uses.
  • A quality job gets a token that is valid for that job only, which Trino checks before it runs the job’s statements.
With How
People The sign-in pages, through Traefik, over HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes.
Modules OpenID Connect and OAuth 2.0: sign-in, tokens, and token exchange on behalf of a person
Directory LDAPLightweight Directory Access Protocol The standard way to look up people in an organisation's user directory, so they can sign in with the account they already use at work., with a service accountService account A token for a script or another system to use Quality Data in its owner's name; it can do at most what its owner can. that may read it
External provider OpenID Connect, with the client registered at the provider

Accounts, groups, policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer., linked providers and module clients are in the core’s database, PostgreSQL. Passwords are kept only as salted hashes. Every sign-in and sign-out, and every change to access, is written to the audit logAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy..

Government Data · Guide v0.8.1