Troubles with custom login and Single Sign-On

Hi everyone,

For our application we’ve substituted the Auth0 lock with a custom login form. Our react application calls our backend api which are calling Auth0 /oauth/token with grant_type: 'password' to return to the client a new token.

This works perfectly, but we’re having some problems in implementing the SSO. We also have a salesforce application that uses the Auth0 plugin for integration. The issue here is that because we are not using the lock anymore, the login form on our hosted login page used by salesforce, doesn’t know anything about the current user, therefor is presenting a login form.

What I’m looking for, always if it’s possible, is to pass the current user token to the hosted login page so that it automatically recognise my user.

I have tried different alternatives, I have also tried to call webAuth.client.userInfo with the token released by /oauth/token but, after changing to RS256, it still returns 401.

Thanks,
Giovanni

Hey @giovanni

As it has been more than a few months since this topic was opened and there has been no reply or further information provided from the community as to the existence of the issue we would like to check if you are still facing the described challenge?

We are more than happy to assist in any way! If the issue is still out there please let us know so we can create a new thread for better visibility, otherwise we’ll close this one in week’s time.

Thank you!

Hi @konrad.sopala,

Thanks for the response. This problem was related to SSO and authentication, we solved this problem with using the hosted pages, which I think is the suggested solution from Auth0.

I think that you can close this thread.

Cheers,
G.

1 Like

Thanks a lot! Glad that you made it work!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.