File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
module OmniAuth
2
2
module LinkedInOAuth2
3
- VERSION = "0.1 .5"
3
+ VERSION = "0.2 .5"
4
4
end
5
5
end
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ class LinkedIn < OmniAuth::Strategies::OAuth2
10
10
# initializing your consumer from the OAuth gem.
11
11
option :client_options , {
12
12
:site => 'https://api.linkedin.com' ,
13
- :authorize_url => 'https://www.linkedin.com/uas/oauth2 /authorization?response_type=code' ,
14
- :token_url => 'https://www.linkedin.com/uas/oauth2 /accessToken'
13
+ :authorize_url => 'https://www.linkedin.com/oauth/v2 /authorization?response_type=code' ,
14
+ :token_url => 'https://www.linkedin.com/oauth/v2 /accessToken'
15
15
}
16
16
17
17
option :scope , 'r_basicprofile r_emailaddress'
Original file line number Diff line number Diff line change 14
14
end
15
15
16
16
it 'has correct authorize url' do
17
- expect ( subject . client . options [ :authorize_url ] ) . to eq ( 'https://www.linkedin.com/uas/oauth2 /authorization?response_type=code' )
17
+ expect ( subject . client . options [ :authorize_url ] ) . to eq ( 'https://www.linkedin.com/oauth/v2 /authorization?response_type=code' )
18
18
end
19
19
20
20
it 'has correct token url' do
21
- expect ( subject . client . options [ :token_url ] ) . to eq ( 'https://www.linkedin.com/uas/oauth2 /accessToken' )
21
+ expect ( subject . client . options [ :token_url ] ) . to eq ( 'https://www.linkedin.com/oauth/v2 /accessToken' )
22
22
end
23
23
end
24
24
You can’t perform that action at this time.
0 commit comments