Governate
Sign in Start a trial

Sign-in

People sign in with an email address and password, or with a Google or Microsoft account if you set that up. Both can be used side by side.

Accounts come first

Signing in with Google or Microsoft never creates an account. An administrator adds the person under Users first; they can then sign in with the outside account that has the same email address. On the first such sign-in the account is tied to that outside identity, so a later change of address at the provider cannot be used to take it over.

Google

Register an OAuth web application in your own Google Cloud project, with this redirect address:

https://docs.example.com/auth/google/callback

Then start the server with:

GOVERNATE_GOOGLE_CLIENT_ID=...
GOVERNATE_GOOGLE_CLIENT_SECRET=...

Microsoft Entra

Register an application in your own tenant, with this redirect address:

https://docs.example.com/auth/microsoft/callback

Then start the server with:

GOVERNATE_ENTRA_TENANT_ID=...
GOVERNATE_ENTRA_CLIENT_ID=...
GOVERNATE_ENTRA_CLIENT_SECRET=...

Replace docs.example.com with your installation's public address. The application registrations are yours; the vendor is not involved and sees nothing.

How it works

The standard OpenID Connect code flow with PKCE. The server checks the provider's signature on the identity token, its audience, its expiry and a one-time value tied to the sign-in attempt.

NoteThese providers sign their tokens with RSA and SHA-256. That is fixed by them. It affects only the sign-in step, not how files or keys are protected.