تخطَّ إلى المحتوى

auth

هذا المحتوى غير متوفر بلغتك بعد.

Extended authentication with passkeys, MFA, device codes, and magic links. Pro plugin.

Requires: Basic license tier or higher. nself license set nself_pro_...

Terminal window
nself license set nself_pro_xxxxx...
nself plugin install auth

Extends ɳSelf core authentication with advanced flows not included in the base stack. Adds WebAuthn passkey registration and assertion, TOTP-based multi-factor authentication, OAuth device code grants, and magic link email flows. All flows are audited to a persistent log for compliance and investigation.

Env VarDefaultDescription
AUTH_PLUGIN_PORT3014Auth plugin service port
AUTH_PASSKEYS_ENABLEDtrueEnable WebAuthn passkey support
AUTH_MFA_ENABLEDtrueEnable TOTP multi-factor authentication
AUTH_MAGIC_LINK_EXPIRY15mExpiry duration for magic link tokens
PortPurpose
3014Auth plugin REST API

7 tables added to your Postgres database:

  • np_auth_sessions: extended session records
  • np_auth_passkeys: registered WebAuthn passkey credentials
  • np_auth_mfa_configs: per-user MFA configuration
  • np_auth_device_codes: OAuth device code grants
  • np_auth_magic_links: issued magic link tokens
  • np_auth_audit_log: authentication event audit trail
  • np_auth_trusted_devices: user-trusted device records
RouteTarget
/auth/Auth plugin API