omniauth-domain-group 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54376485cfc9bf806edefb7f23b4abd5e26ac8da3c1586b460256ed71c54177f
4
- data.tar.gz: eda9d10aba87bac37544025a9efaa15ec839b41e2bb68a0c4c0606830f945631
3
+ metadata.gz: bede16a8c2705a765bc9de21da6f4bd61dd9f1faac5d6e299d496454ce228b06
4
+ data.tar.gz: e723cb387a6541cc25006891b4cb83065a57626f52d2baf87027c96d73350190
5
5
  SHA512:
6
- metadata.gz: e9f37042d2045aac39939cb98e4ff23077a18c74540bcec22712201a446f797521f9a5205d28d317bc0483c9802921c2c247baeba5d9b31b125b5a1ebe96ee33
7
- data.tar.gz: 12b5911313076fcf5c1b26a63f143bb5b70b4dec0de6ad2c7b771a84d77295660bdc1256082a67ea1ad6c5e3a17007c31c8e2907536160520483345de0c9469c
6
+ metadata.gz: 46844380d60a718eb4f6e976600732616ca4dc356493b749df8b74941ead90887891a9d0a58b5a0ef9d3274fe1203fedd114419a113662c5144853367f40caa5
7
+ data.tar.gz: 5cf9c20278c389b382ca141f0cbe3e5068b06471edcceb5a4d914e216eb1cd249fa503d8a5dc54daf489f31df5b9ce4d87fc4c5041010e098bffbb319f0fd39e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-domain-group (1.0.0)
4
+ omniauth-domain-group (1.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module DomainGroup
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -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.0.0
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: 2019-12-18 00:00:00.000000000 Z
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: []