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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +2 -1
- data/README.md +4 -1
- data/lib/omniauth/infinum_azure/version.rb +1 -1
- data/lib/omniauth/strategies/infinum_azure.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 459149341a832a977e44229eb81f8893a64e532697be3ddc851c2a9ddb7174ad
|
4
|
+
data.tar.gz: 8ab0ab169e521a9a73dd98e52cc60804d8ecc65976292e543119e98c796de46f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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: {
|
36
|
+
client_options: {
|
37
|
+
domain: 'https://login.b2c.com',
|
38
|
+
tenant: 'InfinumAzureTenantName'
|
39
|
+
}
|
37
40
|
)
|
38
41
|
```
|
39
42
|
|
@@ -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
|
-
"
|
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
|
+
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:
|
11
|
+
date: 2024-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|