omniauth-proxy 0.2.1 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/strategies/proxy.rb +5 -1
- data/lib/omniauth_proxy/version.rb +1 -1
- metadata +11 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e5367b064193460cf00fb691f3644e2bab5eb54a3ccc42dbb6c2814248d1cb5
|
4
|
+
data.tar.gz: b6c5bb88f92c1134e0a587deb43814b63153e1a18f9ed1549965699a5e43f4e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c096ceba3e7adb4a62d8c1bb6e5aa0e8b2fae440fc3ebbeee9e9b73ad527e7bfcffdc205158d9916be9670ebded8ad3885862ff47d511d6a0837a2c68411ed1
|
7
|
+
data.tar.gz: 7c8d555d7b92eebc10f68d89a63cb8fcc1d1c73d7adfec929871e262a855828fe13b5af820d768dda2a8d2060a8796acbb4d8350abbb18fc16360a594b8244e1
|
@@ -13,7 +13,7 @@ module OmniAuth
|
|
13
13
|
if ENV["OMNIAUTH_PROXY_ENABLED"].present? && status == 302
|
14
14
|
location = headers["Location"]
|
15
15
|
|
16
|
-
if is_google?(location) || is_github?(location) || is_auth0?(location)
|
16
|
+
if is_google?(location) || is_github?(location) || is_auth0?(location) || is_slack?(location)
|
17
17
|
headers["Location"] = proxy_uri(location)
|
18
18
|
end
|
19
19
|
end
|
@@ -33,6 +33,10 @@ module OmniAuth
|
|
33
33
|
location.match?("auth0.com/authorize")
|
34
34
|
end
|
35
35
|
|
36
|
+
def is_slack?(location)
|
37
|
+
location.match?("https://slack.com/openid/connect/authorize")
|
38
|
+
end
|
39
|
+
|
36
40
|
def proxy_uri(location)
|
37
41
|
encoded_uri = Base64.urlsafe_encode64(location)
|
38
42
|
PROXY_PATH + "?uri=" + encoded_uri
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-proxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuva
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -16,40 +16,34 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1
|
20
|
-
- - "
|
19
|
+
version: '2.1'
|
20
|
+
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 2.1.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '1
|
30
|
-
- - "
|
29
|
+
version: '2.1'
|
30
|
+
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 2.1.2
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: omniauth-oauth2
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
40
|
-
- - "<"
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: '2.0'
|
39
|
+
version: '1.8'
|
43
40
|
type: :runtime
|
44
41
|
prerelease: false
|
45
42
|
version_requirements: !ruby/object:Gem::Requirement
|
46
43
|
requirements:
|
47
44
|
- - "~>"
|
48
45
|
- !ruby/object:Gem::Version
|
49
|
-
version: '1.
|
50
|
-
- - "<"
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: '2.0'
|
46
|
+
version: '1.8'
|
53
47
|
- !ruby/object:Gem::Dependency
|
54
48
|
name: rails
|
55
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,7 +80,7 @@ files:
|
|
86
80
|
- lib/omniauth_proxy/railtie.rb
|
87
81
|
- lib/omniauth_proxy/version.rb
|
88
82
|
- lib/tasks/omniauth_proxy_tasks.rake
|
89
|
-
homepage: https://
|
83
|
+
homepage: https://oauth-proxy.fly.dev
|
90
84
|
licenses:
|
91
85
|
- MIT
|
92
86
|
metadata: {}
|