Skip to content

0.2.0-alpha

Pre-release
Pre-release

Choose a tag to compare

@JeffWouters JeffWouters released this 20 Oct 22:00

What a product needs to move its web sign-in onto a shared token server without losing what its Entra sign-in gave it. 0.x versions may change their APIs.

Added

  • Upstream identity for first-party clients (Clients[].ForwardUpstreamIdentity, Clients[].UpstreamClaims): the
    provider, the user's issuer and subject there (idp, idp_iss, idp_sub) and chosen provider claims in the client's
    access tokens, only from providers configured on the server, audited.
  • Authentication contexts through providers (acr_values): passed to the provider (Entra: the claims parameter
    with acrs); a sign-in through a configured provider that didn't report them signs in again once. Clients receive the
    provider's acrs through UpstreamClaims.
  • Checking sessions with their provider again (Providers:{name}:SessionCheckInterval, Entra and OIDC providers): the
    provider's refresh token is kept with the session and redeemed at most once per interval; a provider that refuses it ends
    the session, with back-channel logout. New table ProviderSessions (migration ProviderSessions).
  • Session lifetime per client (Clients[].SessionLifetime). Ended sessions and spent refresh tokens are kept for the
    longest lifetime of any client.
  • Skipping the login page (Clients[].SkipLoginPage): a client with exactly one provider can send its users straight
    to it.
  • Deleting accounts: by the user (DELETE account) or an operator (DELETE admin/accounts/{id}), both with step-up,
    and for inactivity (InactiveAccounts:DeleteAfter, warned WarnBefore ahead through INotifier). Modules erase their
    own data (IAccountDataEraser); the only administrator of a tenant and SCIM-provisioned accounts can't be deleted.
    Event auth.account.deleted.v1. New columns Accounts.LastActiveAtUnixMs and DeletionWarnedAtUnixMs (migration
    AccountActivity; existing accounts count as active from the migration).
  • tenant_hint on the BFF's /bff/login, passed on to the token server (tenant ids only).

Upgrading

  • Two SQL Server migrations, ProviderSessions and AccountActivity: apply them before the new version starts, as you
    apply migrations now.
  • Sign-ins, refreshes and personal access token exchanges now record the account's activity: at most one write per account
    per day.
  • Hosts with their own IAccountRepository: it has three new members (ListToWarnOfDeletionAsync,
    ListDueForDeletionAsync, Remove).