omniauth-infinum_azure 0.1.4 → 0.1.5

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: 8c0cfbd150059fb6878bc374878fc0b70586769f8d774e437164fa019b64827c
4
- data.tar.gz: 9ee1bf51c4d0e2778129da93dbfbdfb828cf67ebc559ac66f6c4594145af1891
3
+ metadata.gz: '0178441ee865dcc137189f779e7eae305e5ca5f870e040e427b9b999a41fbe9a'
4
+ data.tar.gz: d15f11359e2add574be59594631397604b876bcffb411eba971be830af7b3ece
5
5
  SHA512:
6
- metadata.gz: 91cc81adea8aa691c1da4f68d2479eb23525bf7b51ba86b83fed10d228f9eba5772de39b0f3446970c869fb04e9c2c06c7da5115bc0083f8c88eb2725536b168
7
- data.tar.gz: 687428f5c95a1e8743770bdb84af6666fbb81beb3538b5de04b0edeff39c6898b99295aa2dc528612c0f00c04a9f36d34626109151c5a8751c3557cdfdef9a03
6
+ metadata.gz: cd379ff423fbf4f312c0839e5d83f96ab7be8f0b9b3c389e3623837062903f9bd2789b27af82b211ec722efe84cb38b5c5a4b4451246f5f0bfbfb99a484f1727
7
+ data.tar.gz: d6f08b74f57bfe0061c6b2bdca4fc3c0d9b94a3b87b70933eba55254045a3b75f7d4368ff38215348d5d984d5aa6123f3db091b7dd65bf47e0f9bbde3266137b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.5] - 2023-03-14
4
+
5
+ - Read tenant from client options
6
+
3
7
  ## [0.1.4] - 2023-03-14
4
8
 
5
9
  - Moving options to client options
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-infinum_azure (0.1.4)
4
+ omniauth-infinum_azure (0.1.5)
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.4'
5
+ VERSION = '0.1.5'
6
6
  end
7
7
  end
@@ -4,13 +4,15 @@ module OmniAuth
4
4
  module Strategies
5
5
  class InfinumAzure < OmniAuth::Strategies::OAuth2
6
6
  option :name, 'infinum_azure'
7
-
8
- option :client_options, tenant: 'infinumtest'
9
- option :client_options, policy: 'B2C_1_sign_in'
10
- option :client_options, scope: 'openid'
7
+ option :policy, 'B2C_1_sign_in'
8
+ option :scope, 'openid'
11
9
 
12
10
  def base_azure_url
13
- "https://#{options.tenant}.b2clogin.com/#{options.tenant}.onmicrosoft.com/#{options.policy}/oauth2/v2.0"
11
+ "https://#{tenant}.b2clogin.com/#{tenant}.onmicrosoft.com/#{options.policy}/oauth2/v2.0"
12
+ end
13
+
14
+ def tenant
15
+ options.client_options.tenant || 'tenant_not_provided'
14
16
  end
15
17
 
16
18
  def client
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-infinum_azure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marko Ćilimković