mumukit-login 7.3.0 → 7.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03d86c08686a70a40b6b3395cfc566d7b1f210289525716f3c5413cd60977704
4
- data.tar.gz: 983a7c19738beb01b0a23f8c03e7bd98dc6ca51d983a26179d4019f3b1a83b85
3
+ metadata.gz: be2628bd7ab69e312b2259b3c26d75b37bde248e7d3105760605b366d5b27564
4
+ data.tar.gz: b4efe8b1d0cb3fc93dfe9b77bfa12efebf1966e31f24f14f51dfeb86160d2732
5
5
  SHA512:
6
- metadata.gz: 3868084c92bef7ba72a7eb6289229adad904eeb932206cc23f46f2be0d738d3fbdbc72d2adf66515018f615680b1cd06c0ab398a134bfcbb8819888ba4593f35
7
- data.tar.gz: 6b15059270ff67d166129a95e3f8930f5c00f5bb457bd8c9c04dcba0a50f28814f0faf3786781fdfc38689c55b815ef86ba56e933cd62e3762d22282279a4c57
6
+ metadata.gz: f296c251632dbb75996eed92312b26433eaab8bfafcf30da0990fb64d4e610b263b4fd11efac5dd6e9f66e9022a5c86bd84d524e41ac08b0d0a81aeb8cab3548
7
+ data.tar.gz: d242c667ab85d70254514ea418322544580a229c9e3f1587122d9fae8a1dcf7213565a7166bfb616a18fbebdd89f8c969496293150724e070da0e0dbe5551a45
@@ -19,6 +19,7 @@ module Mumukit::Login::LoginControllerHelpers
19
19
 
20
20
  def logout_current_user!
21
21
  destroy_current_user_session!
22
+ login_provider.destroy_session! mumukit_controller
22
23
  origin_redirector.redirect_after_logout!
23
24
  end
24
25
 
@@ -1,15 +1,21 @@
1
1
  module Mumukit::Login::Profile
2
2
  def self.from_omniauth(omniauth)
3
- struct provider: omniauth.provider,
4
- first_name: omniauth.info.first_name,
5
- last_name: omniauth.info.last_name,
6
- social_id: omniauth.uid,
7
- email: omniauth.info.email,
8
- uid: generate_uid(omniauth),
9
- image_url: omniauth.info.image
3
+ struct profile_hash(omniauth)
4
+ end
5
+
6
+ def self.profile_hash(omniauth)
7
+ {
8
+ provider: omniauth.provider,
9
+ first_name: omniauth.info.first_name,
10
+ last_name: omniauth.info.last_name,
11
+ social_id: omniauth.uid,
12
+ email: omniauth.info.email,
13
+ uid: generate_uid(omniauth),
14
+ image_url: omniauth.info.image
15
+ }.compact
10
16
  end
11
17
 
12
18
  def self.generate_uid(omniauth)
13
- omniauth.info.email || omniauth.uid
19
+ omniauth.uid || omniauth.info.email
14
20
  end
15
21
  end
@@ -45,6 +45,9 @@ class Mumukit::Login::Provider::Base
45
45
  nil
46
46
  end
47
47
 
48
+ def destroy_session!(_controller)
49
+ end
50
+
48
51
  def setup_proc
49
52
  proc do |env|
50
53
  options = env['omniauth.strategy'].options
@@ -75,6 +78,9 @@ class Mumukit::Login::Provider::Base
75
78
  {}
76
79
  end
77
80
 
81
+ def finalize_user_creation!(_user)
82
+ end
83
+
78
84
  private
79
85
 
80
86
  def setup_phase_login_settings(env)
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Login
3
- VERSION = '7.3.0'
3
+ VERSION = '7.4.0'
4
4
  end
5
5
  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: 7.3.0
4
+ version: 7.4.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: 2020-06-04 00:00:00.000000000 Z
11
+ date: 2020-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -305,8 +305,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
305
305
  - !ruby/object:Gem::Version
306
306
  version: '0'
307
307
  requirements: []
308
- rubyforge_project:
309
- rubygems_version: 2.7.7
308
+ rubygems_version: 3.0.8
310
309
  signing_key:
311
310
  specification_version: 4
312
311
  summary: Library for login mumuki requests