mirror of
https://github.com/golang/oauth2.git
synced 2025-07-21 00:00:09 +08:00
nokiehealth: add endpoint for Nokia Health Mate
Change-Id: I4fdc7be10d1e10c188889aa149fd5019a7c062bd GitHub-Last-Rev: 6fbdac80b574bdddae2428d0f6a2567d0f97b01e GitHub-Pull-Request: golang/oauth2#315 Reviewed-on: https://go-review.googlesource.com/130477 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
f720f1faee
commit
d2e6202438
@ -131,6 +131,7 @@ var brokenAuthHeaderProviders = []string{
|
|||||||
"https://multisport.todaysplan.com.au/rest/oauth/access_token",
|
"https://multisport.todaysplan.com.au/rest/oauth/access_token",
|
||||||
"https://whats.todaysplan.com.au/rest/oauth/access_token",
|
"https://whats.todaysplan.com.au/rest/oauth/access_token",
|
||||||
"https://stackoverflow.com/oauth/access_token",
|
"https://stackoverflow.com/oauth/access_token",
|
||||||
|
"https://account.health.nokia.com",
|
||||||
}
|
}
|
||||||
|
|
||||||
// brokenAuthHeaderDomains lists broken providers that issue dynamic endpoints.
|
// brokenAuthHeaderDomains lists broken providers that issue dynamic endpoints.
|
||||||
|
16
nokiahealth/nokiahealth.go
Normal file
16
nokiahealth/nokiahealth.go
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
// Copyright 2018 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 nokiahealth provides constants for using OAuth2 to access the Nokia Health Mate API.
|
||||||
|
package nokiahealth
|
||||||
|
|
||||||
|
import (
|
||||||
|
"golang.org/x/oauth2"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Endpoint is Nokia Health Mate's OAuth 2.0 endpoint.
|
||||||
|
var Endpoint = oauth2.Endpoint{
|
||||||
|
AuthURL: "https://account.health.nokia.com/oauth2_user/authorize2",
|
||||||
|
TokenURL: "https://account.health.nokia.com/oauth2/token",
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user