stripeConnect (oauth2)

Authenticate Go API with stripeConnect (oauth2) using Auth0

  • Authentication as a service
  • Easy to integrate
  • Customizable
  • Secure token auth

Setup your application's code

go get github.com/auth0/go-jwt-middleware

Add the following lines to your base code

// JSON response function
func respondJson(text string, w http.ResponseWriter) {
	response := Response{text}

	jsonResponse, err := json.Marshal(response)
	if err != nil {
		http.Error(w, err.Error(), http.StatusInternalServerError)

	w.Header().Set("Content-Type", "application/json")

// Regular HTTP HandlerFunc
func SecuredPingHandler(w http.ResponseWriter, r *http.Request) {
  respondJson("All good. You only get this message if you're authenticated", w)

// Negroni sample
r := mux.NewRouter()
r.Handle("/secured/ping", negroni.New(
http.Handle("/", r)
http.ListenAndServe(":3001", nil)

// net/http sample
app := jwtMiddleware.Handler(SecuredPingHandler)
http.ListenAndServe("", app)

Create an Application Auth0 dashboard

Create an Application in Auth0 dashboard

Install the Custom Social Connection extension under


List the app under the Installed Extensions tab Click on the Custom Social ConnectionsInstalled Extensions tab

Create a stripeConnect (oauth2) connection under Custom Social ConnectionsAuthorize the Custom Social Connections app

Configure your connection settings and enable your application under the Apps tabConfigure Social Connection Settings

Never Compromise
on Identity
Authentication Security and Availability

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
Authentication Certifications and Compliance

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

Learn More
Built by Security Experts
Authentication 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
Authentication Case Studies

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

Learn More
Availability & trust
Authentication Availability

Uptime time in 3 different regions.

Learn More
Host Anywhere
Auth0 Appliance

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

Learn More
Auth0 Active Users

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

Atlassian - Authentication CustomerPBS - Authentication CustomerNVIDIA - Authentication CustomerMozilla - Authentication CustomerBluetooth - Authentication CustomerFinancial Times - Authentication CustomerJet - Authentication CustomerHMH - Authentication CustomerOptimizely - Authentication CustomerPolaris - Authentication CustomerHarper - Authentication CustomerNews Corp - Authentication Customer
Never Compromise
on Identity