Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Square goth Provider

An OAuth2 Code Flow Square goth provider. Inspired by the Fitbit Goth Provider.

See https://github.com/markbates/goth for more information.

Getting Started

go get github.com/munchpass/gothsquare

To use the provider:

// Initialize the provider
// (replace the apiCtx values with your own values)
goth.UseProviders(square.New(apiCtx.SquareClientId, apiCtx.SquareSecret, apiCtx.SquareRedirectUrl))

// Create your HTTP Handlers.
r.GET("/square", square.OAuthStart)
r.GET("/square/callback", square.OAuthCallback)

// You're done!
// Just go to /square to start the OAuth flow.

About

Square Goth Provider (OAuth, No PKCE)

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages