omniauth-infinum_azure 0.1.3 → 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: 59659de2d696197818088fac98f3f33328d2a3f161da9ca9a546cf941381b7af
4
- data.tar.gz: 96650ce1e8d6f71727a05501b2b7f227cd733f1457987f51b0069d6f17568a82
3
+ metadata.gz: '0178441ee865dcc137189f779e7eae305e5ca5f870e040e427b9b999a41fbe9a'
4
+ data.tar.gz: d15f11359e2add574be59594631397604b876bcffb411eba971be830af7b3ece
5
5
  SHA512:
6
- metadata.gz: 162d6f73f68f04357842effb9d13f0a25ae1afd32537dbc57cd9bf0ba24a84a7e88b1c114989c9c6bb40b7c57425c02cfa97bf957916a9016abbe5e5100f1394
7
- data.tar.gz: 2366b8044627f5f011e49e70baf4c9db42c2b973f6c41e630f60e156ddf517fba8364a586cbf1d28949c3a7fc5b7a39849a4a346723170a5f9fa646af51c24af
6
+ metadata.gz: cd379ff423fbf4f312c0839e5d83f96ab7be8f0b9b3c389e3623837062903f9bd2789b27af82b211ec722efe84cb38b5c5a4b4451246f5f0bfbfb99a484f1727
7
+ data.tar.gz: d6f08b74f57bfe0061c6b2bdca4fc3c0d9b94a3b87b70933eba55254045a3b75f7d4368ff38215348d5d984d5aa6123f3db091b7dd65bf47e0f9bbde3266137b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.5] - 2023-03-14
4
+
5
+ - Read tenant from client options
6
+
7
+ ## [0.1.4] - 2023-03-14
8
+
9
+ - Moving options to client options
10
+
3
11
  ## [0.1.3] - 2023-03-14
4
12
 
5
13
  - Finishing setup
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-infinum_azure (0.1.3)
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.3'
5
+ VERSION = '0.1.5'
6
6
  end
7
7
  end
@@ -8,7 +8,11 @@ module OmniAuth
8
8
  option :scope, 'openid'
9
9
 
10
10
  def base_azure_url
11
- "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'
12
16
  end
13
17
 
14
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.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marko Ćilimković