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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be2628bd7ab69e312b2259b3c26d75b37bde248e7d3105760605b366d5b27564
|
4
|
+
data.tar.gz: b4efe8b1d0cb3fc93dfe9b77bfa12efebf1966e31f24f14f51dfeb86160d2732
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f296c251632dbb75996eed92312b26433eaab8bfafcf30da0990fb64d4e610b263b4fd11efac5dd6e9f66e9022a5c86bd84d524e41ac08b0d0a81aeb8cab3548
|
7
|
+
data.tar.gz: d242c667ab85d70254514ea418322544580a229c9e3f1587122d9fae8a1dcf7213565a7166bfb616a18fbebdd89f8c969496293150724e070da0e0dbe5551a45
|
@@ -1,15 +1,21 @@
|
|
1
1
|
module Mumukit::Login::Profile
|
2
2
|
def self.from_omniauth(omniauth)
|
3
|
-
struct
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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.
|
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)
|
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
|
+
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-
|
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
|
-
|
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
|