mumukit-login 6.1.9 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mumukit/login/helpers.rb +2 -0
- data/lib/mumukit/login/helpers/login_settings_helpers.rb +13 -0
- data/lib/mumukit/login/helpers/organization_helpers.rb +5 -0
- data/lib/mumukit/login/provider.rb +0 -6
- data/lib/mumukit/login/settings.rb +0 -14
- data/lib/mumukit/login/version.rb +1 -1
- metadata +9 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8200b72f9ae05c8235f7e53b81857ae3212a82fec4d301e5c994b817f5aa7a2
|
4
|
+
data.tar.gz: 0165fab28ec7ae0f46b7364abbf9af0bbd96b0a2e03d765413632eaad21e6f40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14ee27ad4add9cfdc80b40fdabaf497f0db291ca0c3035b732a6ac220c87de0e78d1318f414e18b3c9a09958acfc8571b61b4cadda954ccadabb3a46c6d80807
|
7
|
+
data.tar.gz: 2d4c7d91d203aa7fd4c37da0e48122cd364ebe0674c1cc5e9765cd00aa15aef18fb918b4ce3369c999826254633dfcb825b48e1eca10eacb4a3aa668e2236fd3
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Mumukit::Login::LoginSettingsHelpers
|
2
|
+
def login_settings
|
3
|
+
@login_settings ||= Mumukit::Login::Settings.new(login_methods)
|
4
|
+
end
|
5
|
+
|
6
|
+
def customized_login_methods?
|
7
|
+
login_methods.size < Mumukit::Login::Settings.login_methods.size
|
8
|
+
end
|
9
|
+
|
10
|
+
def inconsistent_public_login?
|
11
|
+
customized_login_methods? && public?
|
12
|
+
end
|
13
|
+
end
|
@@ -58,12 +58,6 @@ module Mumukit::Login::Provider
|
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
61
|
-
module Mumukit::Platform::Organization::Helpers
|
62
|
-
def login_provider_object
|
63
|
-
@login_provider_object ||= login_provider.try { |it| Mumukit::Login::Provider.parse_login_provider it }
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
61
|
require_relative './provider/base'
|
68
62
|
|
69
63
|
Mumukit::Login::Provider.enabled_providers.each do |it|
|
@@ -75,17 +75,3 @@ class Mumukit::Login::Settings
|
|
75
75
|
[:user_pass]
|
76
76
|
end
|
77
77
|
end
|
78
|
-
|
79
|
-
class Mumukit::Platform::Organization::Settings < Mumukit::Platform::Model
|
80
|
-
def login_settings
|
81
|
-
@login_settings ||= Mumukit::Login::Settings.new(login_methods)
|
82
|
-
end
|
83
|
-
|
84
|
-
def customized_login_methods?
|
85
|
-
login_methods.size < Mumukit::Login::Settings.login_methods.size
|
86
|
-
end
|
87
|
-
|
88
|
-
def inconsistent_public_login?
|
89
|
-
customized_login_methods? && public?
|
90
|
-
end
|
91
|
-
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumukit-login
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 7.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Leonardo Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -224,22 +224,16 @@ dependencies:
|
|
224
224
|
name: mumukit-platform
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
|
-
- - "
|
228
|
-
- !ruby/object:Gem::Version
|
229
|
-
version: '2.6'
|
230
|
-
- - "<"
|
227
|
+
- - "~>"
|
231
228
|
- !ruby/object:Gem::Version
|
232
|
-
version: '5'
|
229
|
+
version: '5.0'
|
233
230
|
type: :runtime
|
234
231
|
prerelease: false
|
235
232
|
version_requirements: !ruby/object:Gem::Requirement
|
236
233
|
requirements:
|
237
|
-
- - "
|
238
|
-
- !ruby/object:Gem::Version
|
239
|
-
version: '2.6'
|
240
|
-
- - "<"
|
234
|
+
- - "~>"
|
241
235
|
- !ruby/object:Gem::Version
|
242
|
-
version: '5'
|
236
|
+
version: '5.0'
|
243
237
|
description:
|
244
238
|
email:
|
245
239
|
- franco@mumuki.org
|
@@ -260,6 +254,8 @@ files:
|
|
260
254
|
- lib/mumukit/login/helpers/authentication_helpers.rb
|
261
255
|
- lib/mumukit/login/helpers/authorization_helpers.rb
|
262
256
|
- lib/mumukit/login/helpers/login_controller_helpers.rb
|
257
|
+
- lib/mumukit/login/helpers/login_settings_helpers.rb
|
258
|
+
- lib/mumukit/login/helpers/organization_helpers.rb
|
263
259
|
- lib/mumukit/login/mucookie.rb
|
264
260
|
- lib/mumukit/login/origin_redirector.rb
|
265
261
|
- lib/mumukit/login/profile.rb
|
@@ -294,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
294
290
|
- !ruby/object:Gem::Version
|
295
291
|
version: '0'
|
296
292
|
requirements: []
|
297
|
-
rubygems_version: 3.0.
|
293
|
+
rubygems_version: 3.0.4
|
298
294
|
signing_key:
|
299
295
|
specification_version: 4
|
300
296
|
summary: Library for login mumuki requests
|