UNPKG

@indiekit/endpoint-auth

Version:

IndieAuth authentication and authorization endpoint for Indiekit. Grants and verifies access tokens and authenticates users.

59 lines (58 loc) 1.96 kB
{ "auth": { "error": { "password": { "missing": "Enter a password", "invalid": "Enter a valid password" } }, "consent": { "authenticate": { "title": "Sign in", "text": "Sign in to {{client}} as {{me}}", "submit": "Sign in" }, "authorize": { "title": "Authorize application", "text": "{{client}} is requesting permission to access {{me}}", "submit": "Allow" }, "password": { "label": "Password" }, "pkce": { "text": "{{client}} is not using Proof of Key Code Exchange (PKCE), which is more secure." }, "redirect": "After authorizing you will be redirected to %s" }, "newPassword": { "title": "New password", "setup": { "text": "A password secret is needed before {{app}} can authenticate IndieAuth requests." }, "submit": "Generate password secret", "password": { "hint": "Enter a password to use for authenticating requests" }, "secret": { "label": "Password secret", "hint": "Use the following value for %s in your environment variables" } }, "guidance": { "title": "Using this IndieAuth endpoint", "discovery": "To use this authentication endpoint, add the following values to your website’s `<head>`:", "authorization": { "title": "Get a user’s identity", "requestCode": "Request an authorization code", "requestCodeResponse": "If the user approves the request, the endpoint will generate an authorization code and redirect back to the client:", "redeemCode": "Redeem an authorization code for a user’s profile URL" }, "authentication": { "title": "Get a user’s access permissions", "redeemCode": "Redeem an authorization code for an access token", "verifyToken": "Verify an access token" } } } }