omniauth-academiaedu 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -6,13 +6,9 @@ module OmniAuth
|
|
6
6
|
|
7
7
|
option :client_options, {
|
8
8
|
:site => 'http://api.academia.edu',
|
9
|
-
:authorize_url => 'http://academia.edu/oauth/authorize'
|
9
|
+
:authorize_url => 'http://api.academia.edu/oauth/authorize'
|
10
10
|
}
|
11
11
|
|
12
|
-
def request_phase
|
13
|
-
super
|
14
|
-
end
|
15
|
-
|
16
12
|
uid { raw_info['id'] }
|
17
13
|
|
18
14
|
info do
|
@@ -33,10 +29,6 @@ module OmniAuth
|
|
33
29
|
@raw_info ||= access_token.get('/v0/user.json').parsed
|
34
30
|
end
|
35
31
|
|
36
|
-
def callback_phase
|
37
|
-
super
|
38
|
-
end
|
39
|
-
|
40
32
|
end
|
41
33
|
end
|
42
34
|
end
|