Skip to content

Commit d2e6202

Browse files
jrmycanadybradfitz
authored andcommitted
nokiehealth: add endpoint for Nokia Health Mate
Change-Id: I4fdc7be10d1e10c188889aa149fd5019a7c062bd GitHub-Last-Rev: 6fbdac8 GitHub-Pull-Request: golang#315 Reviewed-on: https://go-review.googlesource.com/130477 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent f720f1f commit d2e6202

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

internal/token.go

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ var brokenAuthHeaderProviders = []string{
131131
"https://multisport.todaysplan.com.au/rest/oauth/access_token",
132132
"https://whats.todaysplan.com.au/rest/oauth/access_token",
133133
"https://stackoverflow.com/oauth/access_token",
134+
"https://account.health.nokia.com",
134135
}
135136

136137
// brokenAuthHeaderDomains lists broken providers that issue dynamic endpoints.

nokiahealth/nokiahealth.go

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright 2018 The oauth2 Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
// Package nokiahealth provides constants for using OAuth2 to access the Nokia Health Mate API.
6+
package nokiahealth
7+
8+
import (
9+
"golang.org/x/oauth2"
10+
)
11+
12+
// Endpoint is Nokia Health Mate's OAuth 2.0 endpoint.
13+
var Endpoint = oauth2.Endpoint{
14+
AuthURL: "https://account.health.nokia.com/oauth2_user/authorize2",
15+
TokenURL: "https://account.health.nokia.com/oauth2/token",
16+
}

0 commit comments

Comments
 (0)