omniauth-classlink 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth-classlink.rb +1 -1
- data/lib/omniauth/class_link.rb +2 -2
- data/lib/omniauth/class_link/version.rb +1 -1
- data/lib/omniauth/strategies/class_link.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dab291d18409c59b41701938a3dd55f55e1be7e9
|
4
|
+
data.tar.gz: 7d309138fbe2ffee3e609bb9d587da11e98aa950
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed64dbba5999e0723bcedba8971acd378223c8e03c9a6331d5eba2e206c794c1c77099c4a00709be2cf0e6e33c605603505074442668f41c4e8f086e555e6a0d
|
7
|
+
data.tar.gz: cc4e11bdb40577af1f3c1c6a535c9cceb18cb1d0de215c21ed32d640af0ea7d6e235f50e7db682386d810f1b84d1a239203b9d442daddf99f66c9efa8cfab3b9
|
data/lib/omniauth-classlink.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require 'omniauth/
|
1
|
+
require 'omniauth/class_link'
|
data/lib/omniauth/class_link.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
require 'omniauth/
|
2
|
-
require 'omniauth/strategies/
|
1
|
+
require 'omniauth/class_link/version'
|
2
|
+
require 'omniauth/strategies/class_link'
|
@@ -13,6 +13,10 @@ module OmniAuth
|
|
13
13
|
option :fields, [:email, :profile]
|
14
14
|
option :uid_field, 'UserId'
|
15
15
|
|
16
|
+
uid do
|
17
|
+
raw_info[options.uid_field.to_s]
|
18
|
+
end
|
19
|
+
|
16
20
|
def authorize_params
|
17
21
|
super.tap do |params|
|
18
22
|
params[:scope] = [:email, :profile]
|
@@ -23,6 +27,7 @@ module OmniAuth
|
|
23
27
|
info do
|
24
28
|
{
|
25
29
|
first_name: raw_info['FirstName'],
|
30
|
+
last_name: raw_info['LastName'],
|
26
31
|
district_id: raw_info['TenantId'],
|
27
32
|
classlink_id: raw_info['UserId'],
|
28
33
|
external_id: raw_info['SourcedId'],
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-classlink
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kamil Bednarz
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
11
11
|
- gem-public_cert.pem
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-12-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth-oauth2
|