mumukit-login 7.4.0 → 7.4.1

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: be2628bd7ab69e312b2259b3c26d75b37bde248e7d3105760605b366d5b27564
4
- data.tar.gz: b4efe8b1d0cb3fc93dfe9b77bfa12efebf1966e31f24f14f51dfeb86160d2732
3
+ metadata.gz: 79f9af1052d482e6ac705c690008baa6b1b48ce5bac7d4657721391b8f384366
4
+ data.tar.gz: 4ea633723b6d51a32b814af0da2e76a303af02c8cc8030a04b6eaed5822d3af6
5
5
  SHA512:
6
- metadata.gz: f296c251632dbb75996eed92312b26433eaab8bfafcf30da0990fb64d4e610b263b4fd11efac5dd6e9f66e9022a5c86bd84d524e41ac08b0d0a81aeb8cab3548
7
- data.tar.gz: d242c667ab85d70254514ea418322544580a229c9e3f1587122d9fae8a1dcf7213565a7166bfb616a18fbebdd89f8c969496293150724e070da0e0dbe5551a45
6
+ metadata.gz: 70cbe76c86b4b1b34c8501f66a5521eb28646ac6f04a5df3c99cf8993ed0d61f4a4fa9f80115e618818c4f28358d9444777b9bd94622d3961a4f5753e02bcd67
7
+ data.tar.gz: f7e9c785adb74998f9511d72075f8e12183fc65388e7f6793cb5f6ad2d6438bf2b4f967bc16c5b82debfdbdec212d81a3c431654a4e9b69dfe52ce25cc224cfc
@@ -16,6 +16,6 @@ module Mumukit::Login::Profile
16
16
  end
17
17
 
18
18
  def self.generate_uid(omniauth)
19
- omniauth.uid || omniauth.info.email
19
+ Mumukit::Login::Provider.parse_login_provider(omniauth.provider).uid_for_profile(omniauth)
20
20
  end
21
21
  end
@@ -81,6 +81,10 @@ class Mumukit::Login::Provider::Base
81
81
  def finalize_user_creation!(_user)
82
82
  end
83
83
 
84
+ def uid_for_profile(omniauth)
85
+ omniauth.info.email || omniauth.uid
86
+ end
87
+
84
88
  private
85
89
 
86
90
  def setup_phase_login_settings(env)
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Login
3
- VERSION = '7.4.0'
3
+ VERSION = '7.4.1'
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.4.0
4
+ version: 7.4.1
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-08-13 00:00:00.000000000 Z
11
+ date: 2020-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler