Custmized authentication system

Hi everyone,

I hope you’re doing well! I’m currently working on building a custom authentication system in Frappe, and I’m wondering if anyone here has experience or insights to share. Specifically, I’m looking to:

  1. Understand the best practices for customizing authentication in Frappe.

  2. Learn how to integrate a custom authentication flow while ensuring compatibility with the existing framework.

  3. Get tips on managing user roles and permissions securely in a custom setup.

If you’ve tackled this before or have resources to recommend, I’d greatly appreciate your advice!

Thanks in advance for your help!

Why reinvent the wheel? There are several secure methods to choose from including (built-in Frappe, Social Login, LDAP integration, and OAUTH?

What needs are not met by the above?