Skip to main content

These are the docs for 0.27.0-beta, an older release.

See the current docs (0.28.0-beta) for what Norish does today.

Authentication

Configure a sign-in method before the first sign-in. Then manage providers in admin settings. The first account owns the server. Registration is closed after the initial sign up.

Callback URLs

Register the callback URL for your provider. Replace the example address with your public AUTH_URL.

ProviderCallback URL
OIDChttps://example.norish-domain.com/api/auth/callback/oidc
GitHubhttps://example.norish-domain.com/api/auth/callback/github
Googlehttps://example.norish-domain.com/api/auth/callback/google

Linking accounts

In account settings, open Sign-in methods and select Connect to link a provider. The email addresses may differ.

  • You can't disconnect your last sign-in method.
  • Change password signs out your other devices by default.

Password

Set PASSWORD_AUTH_ENABLED to override the admin setting on startup. Norish enables password sign-in if no other method is available.

VariableDescriptionDefault
PASSWORD_AUTH_ENABLEDEnable email and password loginAuto

OIDC

Use an OpenID Connect provider such as Authentik, Pocket ID or Keycloak. Set it to sign ID tokens with an RS or ES key.

docker-compose.yml (environment)
OIDC_NAME: NoraId
OIDC_ISSUER: https://auth.example.com
OIDC_CLIENT_ID: <client-id>
OIDC_CLIENT_SECRET: <client-secret>
OIDC_WELLKNOWN: https://auth.example.com/.well-known/openid-configuration
VariableDescriptionDefault
OIDC_NAMEDisplay name for the OIDC provider(empty)
OIDC_ISSUEROIDC issuer URL(empty)
OIDC_CLIENT_IDOIDC client id(empty)
OIDC_CLIENT_SECRETOIDC client secret(empty)
OIDC_WELLKNOWNWell-known URL (derived from the issuer if omitted)Derived

OIDC claim mapping

Map OIDC groups to the server admin role, and to households that members join automatically.

VariableDescriptionDefault
OIDC_CLAIM_MAPPING_ENABLEDEnable claim-based role and household assignmentfalse
OIDC_SCOPESAdditional OIDC scopes (comma-separated)(empty)
OIDC_GROUPS_CLAIMClaim name containing group membershipsgroups
OIDC_ADMIN_GROUPGroup name that grants the server admin rolenorish_admin
OIDC_HOUSEHOLD_GROUP_PREFIXPrefix for household auto-join groupsnorish_household_

GitHub

Register a new OAuth app on GitHub under OAuth Apps in GitHub developer settings. Use the GitHub callback URL above.

VariableDescriptionDefault
GITHUB_CLIENT_IDGitHub OAuth client id(empty)
GITHUB_CLIENT_SECRETGitHub OAuth client secret(empty)

Google

In the Google Cloud console, open Credentials, choose Create credentials, then OAuth client ID. Pick Web application and use the Google callback URL above.

VariableDescriptionDefault
GOOGLE_CLIENT_IDGoogle OAuth client id(empty)
GOOGLE_CLIENT_SECRETGoogle OAuth client secret(empty)