how to use oauth2 via auth0

Introduction

auth0

We usually log in via oauth2 from various social media like line, facebook, google ,etc.
So we can use auth0 simple achieve to log in by social media.

Create social connections

Open Authentication -> Social page, you can see Create Connection button then click it.
Then you can create new social connection.

new social connection

Create application

Open Applications -> Applications page, you can see Create Application button then click it.

  • Settings, The Domain, Client ID and Client Secret is important in next step.

my app settings

  • Connections

my app connections

Develop your application

You can reference Quick Start in application page. The example choose Regular Web App using Golang.
Then you can see various example for you like programming language.

golang example

Example

Source code

Live Demo