omniauth-proxy 0.2.2 → 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 +2 -2
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
|