infinum_azure 1.1.0 → 2.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: bccb0f25aa72b0098db31e9ab4506056dba8612b377ff357fccad37c06d4fa61
4
- data.tar.gz: 78712899ea5cf67f4873a57ab3131fdf63f631a0b28df303801833df590721df
3
+ metadata.gz: ed06b297d0b3f0e23fb9f1907a47d0929a0877d18118a2b1cc082ab1ff590151
4
+ data.tar.gz: a50b124bb33df07057eb8d9d2460cfa46373b2187a3272b3714670f8ded8df2b
5
5
  SHA512:
6
- metadata.gz: f89d14ae10ecc4b56db75c44fcf39d7bf16676c3e545c5a6630bb0b7346117bbb7e04335cbc0f5caae02051848c5709fa3de5fedb805c2d3cc15a04ce6782c55
7
- data.tar.gz: a5f247dd19493b8961f49499f971ceaebe6f3e2a79f42648a06158e4e2db3b39b40b0c2fc5c2844f09f23a4004f79c18fd76cda2baaf4ef6b7f205f1343da86c
6
+ metadata.gz: e1d8a9312d942c4460926640c6b94ba95fd51a481cac78c176fea9f1a7462e55dbb1aeb38e92d2b42fe110ea776feda207efaa652d644412130d0cd4751a476c
7
+ data.tar.gz: f7b751e569c6100128fb23dba031a9fcb37354d1d4471fed008edb7f3d7fe6e7a9cb3a52a0e121ba71efff7be29b8ef803fc3450a365d1e8e875c8cfea867203
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [2.0.0] - 2024-03-12
4
+
5
+ **BREAKING CHANGE**
6
+ - Add `domain` client option - versions that use the transient dependency `omniauth-infinum_azure` prior to version 1 will not break, but are deprecated and will raise errors in version 2
7
+
3
8
  ## [1.1.0] - 2023-07-10
4
9
 
5
10
  - Fix bug: Use pluralized resource_name for generating the logout paths
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- infinum_azure (1.1.0)
4
+ infinum_azure (2.0.0)
5
5
  bundler
6
6
  devise
7
7
  omniauth-infinum_azure (>= 0.3.0, < 2.0)
@@ -148,7 +148,7 @@ GEM
148
148
  hashie (>= 3.4.6)
149
149
  rack (>= 2.2.3)
150
150
  rack-protection
151
- omniauth-infinum_azure (0.3.0)
151
+ omniauth-infinum_azure (1.0.0)
152
152
  omniauth-oauth2
153
153
  omniauth-oauth2 (1.8.0)
154
154
  oauth2 (>= 1.4, < 3)
@@ -250,6 +250,7 @@ GEM
250
250
 
251
251
  PLATFORMS
252
252
  arm64-darwin-21
253
+ arm64-darwin-22
253
254
 
254
255
  DEPENDENCIES
255
256
  bundler
data/README.md CHANGED
@@ -78,6 +78,7 @@ Required ones are:
78
78
  infinum_azure:
79
79
  client_id: 'client_id_from_InfinumAzure'
80
80
  client_secret: 'client_secret_from_InfinumAzure'
81
+ domain: 'https://login.b2c.com'
81
82
  tenant: 'InfinumAzure_tenant'
82
83
  ```
83
84
 
@@ -18,5 +18,8 @@ Devise.setup do |config|
18
18
 
19
19
  # ==> OmniAuth
20
20
  config.omniauth :infinum_azure, InfinumAzure.client_id, InfinumAzure.client_secret,
21
- client_options: { tenant: InfinumAzure.tenant }
21
+ client_options: {
22
+ domain: InfinumAzure.domain,
23
+ tenant: InfinumAzure.tenant
24
+ }
22
25
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InfinumAzure
4
- VERSION = '1.1.0'
4
+ VERSION = '2.0.0'
5
5
  end
data/lib/infinum_azure.rb CHANGED
@@ -45,6 +45,10 @@ module InfinumAzure
45
45
  dig_secret(:client_secret)
46
46
  end
47
47
 
48
+ def domain
49
+ dig_secret(:domain)
50
+ end
51
+
48
52
  def tenant
49
53
  dig_secret(:tenant)
50
54
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infinum_azure
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.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-07-10 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
@@ -300,7 +300,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
300
300
  - !ruby/object:Gem::Version
301
301
  version: '0'
302
302
  requirements: []
303
- rubygems_version: 3.3.7
303
+ rubygems_version: 3.4.17
304
304
  signing_key:
305
305
  specification_version: 4
306
306
  summary: Authentication mechanism for Rails apps with devise via OAuth2