Skip to content

Commit 94d1d5b

Browse files
committed
Missed auth URL check in linkedin_test.go
Correct test to set correct AuthURL parameter.
1 parent b67847e commit 94d1d5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/linkedin/linkedin_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func Test_BeginAuth(t *testing.T) {
3535
session, err := provider.BeginAuth("test_state")
3636
s := session.(*linkedin.Session)
3737
a.NoError(err)
38-
a.Contains(s.AuthURL, "linkedin.com/uas/oauth2/authorization")
38+
a.Contains(s.AuthURL, "linkedin.com/oauth/v2/authorization")
3939
a.Contains(s.AuthURL, fmt.Sprintf("client_id=%s", os.Getenv("LINKEDIN_KEY")))
4040
a.Contains(s.AuthURL, "state=test_state")
4141
a.Contains(s.AuthURL, "scope=r_basicprofile+r_emailaddress&state")

0 commit comments

Comments
 (0)