omniauth-infinum_azure 0.4.0 → 1.0.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: 5f65c0ecb50026f5054eb06ec283fa5e0c6ee9b1d441f953af5e26c8c3c2e894
4
- data.tar.gz: acbe8eca776bc740a8e7169d03d034027709aac1a4ad6fb09d56ad462263a0a5
3
+ metadata.gz: 459149341a832a977e44229eb81f8893a64e532697be3ddc851c2a9ddb7174ad
4
+ data.tar.gz: 8ab0ab169e521a9a73dd98e52cc60804d8ecc65976292e543119e98c796de46f
5
5
  SHA512:
6
- metadata.gz: 61f8278bb79690f2b487807edeee3041a47421474cae2601394f45d02e514f2abe555ea0d594efec9dc46929879c1660920effff7585987985cea29a5139cf87
7
- data.tar.gz: 152cef7c3c1036b22546e0dcb49cc01ce4f8ea98f454b95f077752a914fc5d7c10507cbf1f9372679fa54944b76077126857aa422a1d78022edb364e309ddf4b
6
+ metadata.gz: 7a48500a1e468b5f4b79e7dd7bffdbbcfba1c3f2081474a1226008ae949de6f6703075dd71f72e87314046db9af33b9b4624fa85f4f9533d99a70bb884d36043
7
+ data.tar.gz: c46a38f511734c1add6afeef627f617ecb345be30016ac4518fd60f687118381ee71ec656207a86b048290a3ae075ece382cc9113ce352d2fbd518bbdeb1b073
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.0.0] - 2024-03-12
4
+
5
+ **BREAKING CHANGE**
6
+ - Add `domain` client option - prior versions were using a hardcoded part in the domain (b2clogin.com). Version 1 and later will require this to be provided by the client.
7
+
3
8
  ## [0.4.0] - 2023-09-05
4
9
 
5
10
  - Add JWT signature validation
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-infinum_azure (0.4.0)
4
+ omniauth-infinum_azure (1.0.0)
5
5
  omniauth-oauth2
6
6
 
7
7
  GEM
@@ -63,6 +63,7 @@ GEM
63
63
 
64
64
  PLATFORMS
65
65
  arm64-darwin-21
66
+ arm64-darwin-22
66
67
 
67
68
  DEPENDENCIES
68
69
  bundler (~> 2.1)
data/README.md CHANGED
@@ -33,7 +33,10 @@ config.omniauth(
33
33
  :infinum_azure,
34
34
  'InfinumAzure_client_id',
35
35
  'InfinumAzure_client_secret',
36
- client_options: { tenant: 'InfinumAzureTenantName' }
36
+ client_options: {
37
+ domain: 'https://login.b2c.com',
38
+ tenant: 'InfinumAzureTenantName'
39
+ }
37
40
  )
38
41
  ```
39
42
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Omniauth
4
4
  module InfinumAzure
5
- VERSION = '0.4.0'
5
+ VERSION = '1.0.0'
6
6
  end
7
7
  end
@@ -24,10 +24,11 @@ module OmniAuth
24
24
  File.join(base_azure_url, 'oauth2/v2.0')
25
25
  end
26
26
 
27
- def base_azure_url
27
+ def base_azure_url # rubocop:disable Metrics/AbcSize
28
+ raise 'Domain not provided' if options.client_options.domain.nil?
28
29
  raise 'Tenant not provided' if options.client_options.tenant.nil?
29
30
 
30
- "https://#{options.client_options.tenant}.b2clogin.com/#{options.client_options.tenant}.onmicrosoft.com/#{options.policy}"
31
+ "#{options.client_options.domain}/#{options.client_options.tenant}.onmicrosoft.com/#{options.policy}"
31
32
  end
32
33
 
33
34
  def other_phase
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.4.0
4
+ version: 1.0.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-09-05 00:00:00.000000000 Z
11
+ date: 2024-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler