Open source · Frappe & ERPNext
JWT Bearer Auth
Single sign-on for Frappe and ERPNext from an identity provider's JWT, such as Cloudflare Access, with automatic login and optional user registration.
- License MIT
- Platform Frappe & ERPNext
Start here
- DocumentationInstall and upgradeInstall JWT Bearer Authentication on a Frappe v16 bench, see what the install changes, and upgrade or remove it.
- DocumentationConfigurationEvery field of JWT Auth Settings, example values for Cloudflare Access, and everything the app adds to a Frappe site.
- DocumentationSign in with a tokenHow a request carrying the provider's JWT logs a person in to Frappe, which user it picks, and what the /login override does.
- DocumentationNew users from a tokenHow the app creates a Frappe user from a valid token, fills it in from a Contact, asks for a profile, and keeps the user in step with the Contact.
- DocumentationLog outHow logging out of the desk or the website ends both the Frappe session and the identity provider's session.
- DocumentationLimitations and troubleshootingWhat JWT Bearer Authentication does not do, and how to find out why a token does not log anyone in.
JWT Bearer Auth is part of Avunu's open-source work: tools we build for our own client projects and share with everyone.
See every project