Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Coinbase to Providers #469

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions coinbase/coinbase.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright 2021 The oauth2 Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Package coinbase provides constants for using OAuth2 to access Coinbase.
package coinbase

import (
"golang.org/x/oauth2"
)

// Endpoint is Coinbase's OAuth 2.0 endpoint.
var Endpoint = oauth2.Endpoint{
AuthURL: "https://www.coinbase.com/oauth/authorize",
TokenURL: "http://www.coinbase.com/oauth/token",
}
6 changes: 6 additions & 0 deletions endpoints/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ var Cern = oauth2.Endpoint{
TokenURL: "https://oauth.web.cern.ch/OAuth/Token",
}

// Coinbase is the endpoint for Amazon.
var Coinbase = oauth2.Endpoint{
AuthURL: "https://www.coinbase.com/oauth/authorize",
TokenURL: "http://www.coinbase.com/oauth/token",
}

// Facebook is the endpoint for Facebook.
var Facebook = oauth2.Endpoint{
AuthURL: "https://www.facebook.com/v3.2/dialog/oauth",
Expand Down