omniauth-icalia 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/icalia/stubbed_sso_service.rb +8 -8
- data/lib/omniauth-icalia/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 76a507c543087c4a2c61fb09072b46178e53254676d28947a921a51901f87824
|
|
4
|
+
data.tar.gz: 5e807f57157e0b7bd9225bebac96e8f13c9046dc330249c0b7b89408ebb0433d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5fbc1b076e8a864123affd12e35b1180702b2ec75a1adb98256c442fdf261e77c48bbbc070cda7715ccd48aff44b9df91cfa9bc94a0552ba375d228ace897350
|
|
7
|
+
data.tar.gz: 0c141cee9f07f64fb60fe73344311050794ed250f84c7c6ad1ccea275344389a75db0abc02ae15be6a0e249a5e9fe6b0cecbddc16647d4a196d6151e67882131
|
|
@@ -91,7 +91,7 @@ module Icalia
|
|
|
91
91
|
define_singleton_method method_name do
|
|
92
92
|
class_variable_get("@@#{method_name}")
|
|
93
93
|
end
|
|
94
|
-
|
|
94
|
+
|
|
95
95
|
define_singleton_method "#{method_name}=".to_sym do |value|
|
|
96
96
|
class_variable_set("@@#{method_name}", value)
|
|
97
97
|
end
|
|
@@ -113,19 +113,19 @@ module Icalia
|
|
|
113
113
|
|
|
114
114
|
def reset
|
|
115
115
|
oauth_flows.clear
|
|
116
|
-
|
|
116
|
+
|
|
117
117
|
self.example_resource_owner_id = SecureRandom.uuid
|
|
118
118
|
self.example_resource_owner_given_name = 'Example Person'
|
|
119
119
|
self.example_resource_owner_family_name = 'From Artanis'
|
|
120
120
|
self.example_resource_owner_gender_type = 'male'
|
|
121
121
|
self.example_resource_owner_custom_gender = nil
|
|
122
122
|
end
|
|
123
|
-
|
|
123
|
+
|
|
124
124
|
def example_resource_owner_full_name
|
|
125
125
|
[example_resource_owner_given_name, example_resource_owner_family_name]
|
|
126
126
|
.compact.join(' ').strip
|
|
127
127
|
end
|
|
128
|
-
|
|
128
|
+
|
|
129
129
|
def store_oauth_flow_data(data)
|
|
130
130
|
oauth_flows << data
|
|
131
131
|
end
|
|
@@ -137,8 +137,8 @@ module Icalia
|
|
|
137
137
|
def sign_in_url
|
|
138
138
|
"#{url}/sign-in"
|
|
139
139
|
end
|
|
140
|
-
|
|
141
|
-
# Taken from FakeStripe.stub_stripe at fake_stripe gem:
|
|
140
|
+
|
|
141
|
+
# Taken from FakeStripe.stub_stripe at fake_stripe gem:
|
|
142
142
|
def prepare
|
|
143
143
|
reset
|
|
144
144
|
|
|
@@ -151,8 +151,8 @@ module Icalia
|
|
|
151
151
|
OmniAuth::Strategies::Icalia.instances.each do |strategy|
|
|
152
152
|
strategy.options.client_options.tap do |options|
|
|
153
153
|
options.site = url
|
|
154
|
-
options.token_url = "#{
|
|
155
|
-
options.authorize_url = "#{
|
|
154
|
+
options.token_url = "#{url}/oauth/token"
|
|
155
|
+
options.authorize_url = "#{url}/oauth/authorize"
|
|
156
156
|
end
|
|
157
157
|
end
|
|
158
158
|
end
|