omniauth-domain-group 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/omniauth/domain_group/version.rb +1 -1
- data/lib/omniauth/strategies/domain_group.rb +15 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bede16a8c2705a765bc9de21da6f4bd61dd9f1faac5d6e299d496454ce228b06
|
4
|
+
data.tar.gz: e723cb387a6541cc25006891b4cb83065a57626f52d2baf87027c96d73350190
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46844380d60a718eb4f6e976600732616ca4dc356493b749df8b74941ead90887891a9d0a58b5a0ef9d3274fe1203fedd114419a113662c5144853367f40caa5
|
7
|
+
data.tar.gz: 5cf9c20278c389b382ca141f0cbe3e5068b06471edcceb5a4d914e216eb1cd249fa503d8a5dc54daf489f31df5b9ce4d87fc4c5041010e098bffbb319f0fd39e
|
data/Gemfile.lock
CHANGED
@@ -54,6 +54,21 @@ module OmniAuth
|
|
54
54
|
}
|
55
55
|
end
|
56
56
|
|
57
|
+
# Overrride client to merge in site based on sandbox option
|
58
|
+
def client
|
59
|
+
# Merge in authorize url if supplied
|
60
|
+
options.authorize_params[:clientId] = options.client_id
|
61
|
+
options.authorize_params[:redirect] = callback_url
|
62
|
+
options.client_options[:authorize_url] = options.authorize_url if options.authorize_url.present?
|
63
|
+
options.client_options[:site] = options.site if options.site.present?
|
64
|
+
|
65
|
+
::OAuth2::Client.new(
|
66
|
+
options.client_id,
|
67
|
+
options.client_secret,
|
68
|
+
deep_symbolize(options.client_options)
|
69
|
+
)
|
70
|
+
end
|
71
|
+
|
57
72
|
def callback_url
|
58
73
|
options[:redirect_uri] || (full_host + script_name + callback_path)
|
59
74
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-domain-group
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Realhub Systems
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -94,7 +94,7 @@ homepage: https://github.com/realhub/omniauth-domain-group
|
|
94
94
|
licenses:
|
95
95
|
- MIT
|
96
96
|
metadata: {}
|
97
|
-
post_install_message:
|
97
|
+
post_install_message:
|
98
98
|
rdoc_options: []
|
99
99
|
require_paths:
|
100
100
|
- lib
|
@@ -109,9 +109,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
|
-
rubyforge_project:
|
112
|
+
rubyforge_project:
|
113
113
|
rubygems_version: 2.7.10
|
114
|
-
signing_key:
|
114
|
+
signing_key:
|
115
115
|
specification_version: 4
|
116
116
|
summary: A Domain Group OAuth2 strategy for OmniAuth
|
117
117
|
test_files: []
|