omniauth-infinum_azure 0.1.6 → 0.2.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: 11a7f4da942b1ebf249700e61fe5a36d356529a31c2bfb530da08dd920f08518
4
- data.tar.gz: 79f93a08ac73c51b5c35bd21a60dc47686fd46548a4e2a2e55236459792c5203
3
+ metadata.gz: 80e79209324b2f50f79a2529c426529d87377548dcc9a1002a9660b2d003b7b6
4
+ data.tar.gz: 6cecf9ac45d080db86798919209a2879b34b696f457db7de930c43053fdf4d1e
5
5
  SHA512:
6
- metadata.gz: 04b0d14a591a242651851227cf472a708b58961dabc45c5f4282f578dc9a0ea84b8922813be0e7895afcb5096ff392868671d9e8cc744d8cf6f35d8c7fdacf4c
7
- data.tar.gz: 62cc9c8e4d60b812770b301bfe302eef35dba0c3e841aff6d6d4d33db3691d8543023df19a61552130e650179a3ce1f55ce111ddd3aeb6bccded4fd1312e6028
6
+ metadata.gz: de3ed9fd7a7ae3739c21268d00ab26d278beaa89a0b0438f61aca75ea3f326c14a2fc1f9aa1c3e52dbad31bf9c8eb9c79bfdd702a2ea6aaf043bc57035c2832c
7
+ data.tar.gz: 2afe31d2dce004f34ed0a9f6df7c87e73a8eed864dd39210d8f00a674f20f7357f15071ee1f65a112a34490c445dc8622b5c119b00a9a2e25b502c492c91decb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.0] - 2023-04-04
4
+
5
+ - Fix issue with Azure payload (emails array changed to email string)
6
+ - Add first_name and last_name to `info`
7
+
8
+ ## [0.1.7] - 2023-04-04
9
+
10
+ - Change policy ID to allow signin and signup
11
+
3
12
  ## [0.1.6] - 2023-03-15
4
13
 
5
14
  - Raise error if tenant not provided
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-infinum_azure (0.1.6)
4
+ omniauth-infinum_azure (0.2.0)
5
5
  omniauth-oauth2
6
6
 
7
7
  GEM
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Omniauth
4
4
  module InfinumAzure
5
- VERSION = '0.1.6'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
@@ -4,7 +4,7 @@ module OmniAuth
4
4
  module Strategies
5
5
  class InfinumAzure < OmniAuth::Strategies::OAuth2
6
6
  option :name, 'infinum_azure'
7
- option :policy, 'B2C_1_sign_in'
7
+ option :policy, 'B2C_1A_SIGNUP_SIGNIN'
8
8
  option :scope, 'openid'
9
9
 
10
10
  def client
@@ -40,8 +40,10 @@ module OmniAuth
40
40
 
41
41
  info do
42
42
  {
43
- email: raw_info['emails'][0],
44
- name: raw_info['name']
43
+ email: raw_info['email'],
44
+ name: raw_info['name'],
45
+ first_name: raw_info['given_name'],
46
+ last_name: raw_info['family_name']
45
47
  }
46
48
  end
47
49
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-infinum_azure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marko Ćilimković
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-15 00:00:00.000000000 Z
11
+ date: 2023-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler