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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39a933cfdc9037bea236532c640b54b56a0f2bc7
4
- data.tar.gz: 75b187f8b5497a9e672f59ebeefefed1eef163b4
3
+ metadata.gz: dab291d18409c59b41701938a3dd55f55e1be7e9
4
+ data.tar.gz: 7d309138fbe2ffee3e609bb9d587da11e98aa950
5
5
  SHA512:
6
- metadata.gz: e9935f73e199f001c676bbe64fa1e9c1181a203521c42d679ad4d410d8df07726da4ccb015de6600b5c351b1f621d47c253add7553a5f5d0443c6d272f6c74f9
7
- data.tar.gz: f0cf877c8a622c04bff8fab528ade6179a8dc763fd3a9bf7ec699ce30912b129f86084301f055ada1f8e70ba72ef0c917f59d7dc691c605c6dd881fe4ab38f46
6
+ metadata.gz: ed64dbba5999e0723bcedba8971acd378223c8e03c9a6331d5eba2e206c794c1c77099c4a00709be2cf0e6e33c605603505074442668f41c4e8f086e555e6a0d
7
+ data.tar.gz: cc4e11bdb40577af1f3c1c6a535c9cceb18cb1d0de215c21ed32d640af0ea7d6e235f50e7db682386d810f1b84d1a239203b9d442daddf99f66c9efa8cfab3b9
@@ -1 +1 @@
1
- require 'omniauth/classlink'
1
+ require 'omniauth/class_link'
@@ -1,2 +1,2 @@
1
- require 'omniauth/classlink/version'
2
- require 'omniauth/strategies/classlink'
1
+ require 'omniauth/class_link/version'
2
+ require 'omniauth/strategies/class_link'
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module ClassLink
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -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.2.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-10-14 00:00:00.000000000 Z
12
+ date: 2019-12-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth-oauth2