JSPM

decap-cms-ui-auth

3.2.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6203
  • Score
    100M100P100Q132191F
  • License MIT

UI auth library for Decap CMS

Package Exports

  • decap-cms-ui-auth
  • decap-cms-ui-auth/dist/decap-cms-ui-auth.js
  • decap-cms-ui-auth/dist/esm/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (decap-cms-ui-auth) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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