Skip to content

Commit

Permalink
nokiehealth: add endpoint for Nokia Health Mate
Browse files Browse the repository at this point in the history
Change-Id: I4fdc7be10d1e10c188889aa149fd5019a7c062bd
GitHub-Last-Rev: 6fbdac8
GitHub-Pull-Request: #315
Reviewed-on: https://go-review.googlesource.com/130477
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
jrmycanady authored and bradfitz committed Aug 21, 2018
1 parent f720f1f commit d2e6202
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ var brokenAuthHeaderProviders = []string{
"https://multisport.todaysplan.com.au/rest/oauth/access_token",
"https://whats.todaysplan.com.au/rest/oauth/access_token",
"https://stackoverflow.com/oauth/access_token",
"https://account.health.nokia.com",
}

// brokenAuthHeaderDomains lists broken providers that issue dynamic endpoints.
Expand Down
16 changes: 16 additions & 0 deletions nokiahealth/nokiahealth.go
Original file line number Diff line number Diff line change
@@ -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",
}

0 comments on commit d2e6202

Please sign in to comment.