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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4bedfba8459b4c96c7700d6006cfbf989f6d47fd574a90a42350c8550df2c523
4
- data.tar.gz: 158b47d85c9122b2b76a4c8786d1060dee2264af03eb96f7d216f2507b5b1899
3
+ metadata.gz: 5e5367b064193460cf00fb691f3644e2bab5eb54a3ccc42dbb6c2814248d1cb5
4
+ data.tar.gz: b6c5bb88f92c1134e0a587deb43814b63153e1a18f9ed1549965699a5e43f4e0
5
5
  SHA512:
6
- metadata.gz: 91449a546c060599bcdbf037b62786b4e9f59bbf3c727df987943ae589beeafb0fd9e45bae489791a8f2191ba5ee917b815307fb816a7fb56400803605b084f8
7
- data.tar.gz: 4bce76d91caf7effe04b6d717744273338ecab05cf1032b29916564c49c1f9970e4121871148fb8aae722af57e602be246a91b9c8bedacd918aaf88d912437a9
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
@@ -1,3 +1,3 @@
1
1
  module OmniauthProxy
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
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.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-20 00:00:00.000000000 Z
11
+ date: 2024-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth