From 770e5ebd4ab27c4d70b0983674d138217f5e2c72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Getulio=20S=C3=A1nchez?= Date: Wed, 23 May 2018 18:35:42 -0400 Subject: [PATCH] linkedin: Update to new endpoint LinkedIn API documentation states that this are the correct URLs: https://developer.linkedin.com/docs/oauth2 Fixes #253 Change-Id: I4fe292a1d85d73e184adf6fe6b23af6eb47d8c23 Reviewed-on: https://go-review.googlesource.com/114355 Reviewed-by: Brad Fitzpatrick --- linkedin/linkedin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linkedin/linkedin.go b/linkedin/linkedin.go index b619f93..62d1de8 100644 --- a/linkedin/linkedin.go +++ b/linkedin/linkedin.go @@ -11,6 +11,6 @@ import ( // Endpoint is LinkedIn's OAuth 2.0 endpoint. var Endpoint = oauth2.Endpoint{ - AuthURL: "https://www.linkedin.com/uas/oauth2/authorization", - TokenURL: "https://www.linkedin.com/uas/oauth2/accessToken", + AuthURL: "https://www.linkedin.com/oauth/v2/authorization", + TokenURL: "https://www.linkedin.com/oauth/v2/accessToken", }