+
  • 1
    Setup your application’s code
  • 2
    Create an app in Auth0 dashboard
  • 3
    Create a social connection

Add the needed dependencies to your client application

go get github.com/gorilla/mux
go get github.com/gorilla/sessions
go get golang.org/x/oauth2

Show Lock, the login box, to the user

<script src="https://cdn.auth0.com/js/lock/10.6/lock.min.js"></script>
<script>
var lock = new Auth0Lock('YOUR_CLIENT_ID', 'YOUR_AUTH0_DOMAIN');

function signin() {
  lock.show({
      callbackURL: 'http://localhost:CHANGE-TO-YOUR-PORT/callback'
    , responseType: 'code'
    , authParams: {
      scope: 'openid name email' //Details: https:///scopes
    }
  });
}
</script>

<button onclick="signin()">Login</button>

Activate the Firebase API addon in your Auth0 dashboard

Activate Addons in your Auth0 dashboard

Step 1Call the Delegation endpoint from Auth0 to get a token for Firebase API

curl --data \
 "client_id=YOUR_CLIENT_ID&\
 &grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer\
 &refresh_token=\
 &scope=open_id\
 &api_type=firebase"\
 https://YOUR_ACCOUNT.auth0.com/delegation

Step 2Use the newly got token to call the Firebase API

GET STARTED IN MINUTES

Authentication Built for Security & High Availability

Auth0 is the easiest way for developers to integrate enterprise-grade authentication and identity management to any app.

Industry Standard Compliance

SOC 2, HIPAA/BAA, EU/US Privacy Shield Framework, Open ID Certified.

Learn More
Built by Security Experts

Continuously reviewed and tested by external security experts. Strong password encryption and hashing algorithms, at rest and in transit.

Learn More
What Our Customers Say

Continuously reviewed and tested by external security experts. Strong password encryption and hashing algorithms, at rest and in transit.

Learn More
Availability & trust

Uptime time in 3 different regions.

Learn More
Host Anywhere

Deploy On-Premises or on Cloud on your data center or Auth0’s one.

Learn More

Get Auth0 free for 7,000 active users per month with unlimited logins

  • Single Sign On
  • Passwordless Login
  • Up to 2 Social Identity Providers
  • Multifactor Authentication
  • User Management
  • Extensibility (Run custom code on Auth)

Some of the companies that trust us every day