i want to integrate auth0 to my web page where i need to send user data from my web page and i need to authenticate not a universal or lock. A custom ui with a login and signup in my web page how to start and how to end? is it possible to achive that ? my client dont want to use auth0 ui.
Thatās of course doable! You donāt need to use our ready-to-use UIs but instead develop the UI yourself and then tie it with our Authentication and Management APIs byt hitting the right endpoints from your app.
For login & signup purposes you need to use the Authentication API. The best way for you to quickly grasp what each API do is to go the the link I provided and then in the sidebar on the left you have all actions you can perform with both APIs
i.m getting response for almost all end points which i checked with postman that is enough for our client.The technology i.m using sales force commerce cloud so i can interact with my server side language and i can handle and i can make it work like how auth0 library worksā¦???
Iām getting a bit confused with your messages. Can I ask you to provide me with once concise message about the context around what are you trying to build(platform, language, etc.), what parts of our stack have you already tested and what questions you have?
@konrad.sopala I donāt think heās looking for the /authorize endpoint - which āreturns a 302 redirect to the Auth0 Login Page that will show the Login Widget where the user can login with email and password.ā - he wants his users to input a username/password on his own UI hosting on his server. I donāt like how auth0 uses misleading words to say āyou can use your custom UIā it makes people think they can build their own login form and just hit an auth0 endpoint to return an access token when in reality thereās no way to log in without going to the lock widget page ā this has been my experience - if there is a way to use a custom login form and just hit an auth0 endpoint to get an access token back, then please enlighten me because I havenāt found a way to do it and Iāve been using auth0 for over a year now. The endpoint that lock hits to login is the following: POST /usernamepassword/login but thatās not documented anywhere as far as I know - all I see are the GET /authorize which redirects to lock
I do know a user can sign-up using the pure API endpoints, but sign-up from my experience (correct me if iām wrong) doesnt return an access token .
@gaganm you can use a custom sign-up form and hit the endpoint here: Authentication API Explorer which will create an auth0 user account but to log in you still have to go through the lock widget - which is really annoying in my opinion but I do understand that itās a security issue. The reason itās annoying is because Iāve seen people avoid signing up / logging in when they get redirected to auth0 lock - so itās not good for marketing/sales channels. The only way to use a login endpoint and host your own login form from within your app is to use embedded login with cross-origin verification: Cross-Origin Authentication
Let me explain you very clearly what i need to doā¦we are using an auth0 by long time and we are using there hoisted login and sign up page as if now. Now client doesnāt want to use auth0 login/sign up page so what he wants is in his web page it self he want user to enter the email and password to enter and authentication should happen based on there credentials and so . sending data from his page but still he want auth0 to authenticate and handle the rest of behaviour.
Now can you please tell me can i achive all functionality by hitting only there proper end points??? The good thing is i tried all most all end points with postman i got all reponses.
One thing to remember is that you need to enable custom domain to avoid cross-origin issues.
Aldo make sure to visit and go through this comparison website to see what are the advantages and disadvantages of such approach: