TeamDesk Knowledge Base & Support

   Home      FAQ      Forum      Idea Exchange      Ask a Question      My Stuff      Help   
  
How to use TeamDesk users credentials to log into Auth0 SSO Login page
Hi,

I'm a developer for WaterDesk, based on TeamDesk. By reading your blog article https://www.teamdesk.net/blog/tips-tricks/teamdesk-single-sign-on-auth0/, I successfully configured SSO for WaterDesk with Auth0.

We have a requirement to be able to allow WaterDesk users to log in via the Auth0 interface (or Universal Login Window) using their existing WaterDesk credentials. One solution that was suggested by Auth0 (https://auth0.com/docs/authenticate/database-connections/custom-db/create-db-connection) is to use a Custom database along with the script for login.

This script for login will require me to hash the customer's plain password. I will also need the connection string to the WaterDesk database (all users).

Can you please help me?
ID
2008
Category
Integration/API
Author

Vikram Singh Saini
Date Created
9/7/2023 3:07:18 AM
Date Updated
9/7/2023 5:26:47 AM
Comments
Kirill Bondar  Staff  9/7/2023 5:26:47 AM
We do not provide direct access to the user database storage. And yes, Auth0's **sample script** hashes password prior to passing it to authorization method, but it won't work with TeamDesk.

If you are trying to perform lazy migration of WaterDesk users to Auth0 consider the following:

Create dummy database and add there all the users that are subject for Auth0 login.

Set up Auth0 login script to call REST API's User method in your dummy database using Basic Authorization with email and password provided by Auth0. If user/password pair is valid the method will respond with user information aka profile. If not, it will respond with 4xx error code and the message you can use to provide valid error feedback to Auth0 to indicate failed login.
https://auth0.com/docs/authenticate/database-connections/custom-db/templates/login


Feedback
Back to Search Results