omniauth_llx 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/omniauth_llx/llx/version.rb +1 -1
- data/lib/omniauth_llx/strategies/llx.rb +11 -2
- metadata +1 -1
@@ -5,11 +5,16 @@ require 'rack/utils'
|
|
5
5
|
require 'uri'
|
6
6
|
|
7
7
|
module OmniAuthLlx
|
8
|
+
def new
|
9
|
+
oal = OmniAuthLlx.new
|
10
|
+
end
|
11
|
+
|
8
12
|
module Strategies
|
13
|
+
|
9
14
|
class Llx < OmniAuth::Strategies::OAuth2
|
10
15
|
class NoAuthorizationCodeError < StandardError; end
|
11
16
|
class UnknownSignatureAlgorithmError < NotImplementedError; end
|
12
|
-
|
17
|
+
|
13
18
|
DEFAULT_SCOPE = 'email'
|
14
19
|
|
15
20
|
option :client_options, {
|
@@ -54,7 +59,11 @@ module OmniAuthLlx
|
|
54
59
|
hash['raw_info'] = raw_info unless skip_info?
|
55
60
|
prune! hash
|
56
61
|
end
|
57
|
-
|
62
|
+
|
63
|
+
def initialize
|
64
|
+
|
65
|
+
end
|
66
|
+
|
58
67
|
def raw_info
|
59
68
|
@raw_info ||= access_token.get('/me', info_options).parsed || {}
|
60
69
|
end
|