This commit is contained in:
2025-08-25 20:24:23 +08:00
parent 30106e0129
commit 0ae8d7a709
1044 changed files with 321581 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
# decap-cms-ui-auth
Authentication UI pages used by the decap-cms-backend-* packages.
## Common Behavior
* An authenticator must return the following fields:
* email
* token?
* expires?
## Components
* **NetlifyAuthenticationPage**
* Username and password fields that are passed to Netlify Identity.
* Requires a static `authClient` value set before login will work, expected to be set by the backend implementation.
* Returns object that satisfies the GitGatewayUser type (and inherited Credentials type) from Netlify
* **PKCEAuthenticationPage**
* OAuth2 PKCE flow with optional OIDC auto-configuration.
* Returns object that satisfies the GitGatewayUser type (and inherited Credentials type), with additional data:
* token (part of Credentials definition): the access token
* idToken: if available
* claims: if available (decoded access token)
* idClaims: if available (decoded ID token)
* email: mapped email value from the token claims, if available
* user_metadata.full_name: mapped value from the token claims, if available
* user_metadata.avatar_url: mapped value from the token claims, if available