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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a533b3d02145970eb0befa251c2720b18251aa40ed52f6b40182cd7b64430a15
4
- data.tar.gz: 962cc9dc9f37d9ed5406448b8147f43e8821dafef7272390639fb2927c605eec
3
+ metadata.gz: 5e5367b064193460cf00fb691f3644e2bab5eb54a3ccc42dbb6c2814248d1cb5
4
+ data.tar.gz: b6c5bb88f92c1134e0a587deb43814b63153e1a18f9ed1549965699a5e43f4e0
5
5
  SHA512:
6
- metadata.gz: 28a49cdad6c1e170eefdc5a012fe326e9944c04f43e470169b0f2b395a5176015d253104bca3bd1e794b7b0ab401bb6ad118b4e15875020f114fd5ae467878b1
7
- data.tar.gz: 38936039a6eadec3489df6ccea5b148aeec443aa7acffd2f9891cc3839d6ca6c533c6744efdefc8465208cfb2f323d61daae8cd6fca77ab446b05c2e62f15b6e
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.1'
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.1
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-16 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
@@ -16,40 +16,34 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.9'
20
- - - "<"
19
+ version: '2.1'
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: '2.0'
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.9'
30
- - - "<"
29
+ version: '2.1'
30
+ - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: '2.0'
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.6'
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.6'
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://oproxy.herokuapp.com
83
+ homepage: https://oauth-proxy.fly.dev
90
84
  licenses:
91
85
  - MIT
92
86
  metadata: {}