Help with custom social connection

Hi all,
I would like to create a custom social connection that will have the ability to do magics when the user first logged in, for that I need the access and refresh token.
I tried to set the ‘Authorization URL’ to my server, I got my tokens, but I don’t know how to continue with the Auth0 flow after this.
How can I do this?
Is there any documentation for How to create a custom social domain that works with custom connection.
Thanks a lot

Hi @assafShilo

Welcome to the Auth0 Community.

The documentation here shows how to configure and test custom social connections. There should be everything here that you need to get going.

Warm regards.

1 Like

Thank you very much.

I’m trying to create a custom social connection with custom identity.

Where should I redirect the user when I get the tokens ?

Thanks

Hi @assafShilo

Are you using token based authentication? generally this is used to access API’s and you would send the token along with your request via the authorization header as a bearer token https://auth0.com/docs/secure/tokens/token-best-practices#tokens-vs-cookies

Further information on this here https://auth0.com/learn/token-based-authentication-made-easy/

I would recommend using one of our SDK’s for your web application https://auth0.com/docs/libraries as they make authentication easy with any of your connections.

Warm regards.

Hi @SaqibHussain,
I need to create a custom social connection that when the user logs in it will do the following:

  1. get credentials (access and refresh tokens) from hubspot.
  2. save the access and refresh tokens on my side (call my api)
  3. redirect as authenticated user to my app.

Is it possible to do that?
Thanks

Hi @assafShilo

When you make your call to the /authorize endpoint you can add a redirect_url as part of that call. Once you successfully authenticate with HubSpot and receive your tokens you will be redirected to this URL which is likely to be your application, please see here https://auth0.com/docs/authenticate/protocols/oauth#authorization-endpoint

Warm regards.