oauth2_proxy 6.0.0
oauth2-proxy: oauth2_proxy -> oauth2-proxy Closes #56996. Signed-off-by: chenrui <chenrui333@gmail.com>master
parent
dacea6fdf0
commit
a76e09d8ea
|
@ -1,8 +1,8 @@
|
|||
class Oauth2Proxy < Formula
|
||||
desc "Reverse proxy for authenticating users via OAuth 2 providers"
|
||||
homepage "https://oauth2-proxy.github.io/oauth2-proxy/"
|
||||
url "https://github.com/oauth2-proxy/oauth2_proxy/archive/v5.1.1.tar.gz"
|
||||
sha256 "f87b9596420739328e9271ec51c092190039521f4e1daf552123ded27b635def"
|
||||
url "https://github.com/oauth2-proxy/oauth2-proxy/archive/v6.0.0.tar.gz"
|
||||
sha256 "cff836f293895393f4cf853725cb7e72c9bee6e41f732e4e957420fc753a41e3"
|
||||
head "https://github.com/oauth2-proxy/oauth2-proxy.git"
|
||||
|
||||
bottle do
|
||||
|
@ -17,18 +17,18 @@ class Oauth2Proxy < Formula
|
|||
def install
|
||||
system "go", "build", "-ldflags", "-s -w -X main.VERSION=#{version}",
|
||||
"-trimpath",
|
||||
"-o", bin/"oauth2_proxy"
|
||||
(etc/"oauth2_proxy").install "contrib/oauth2_proxy.cfg.example"
|
||||
bash_completion.install "contrib/oauth2_proxy_autocomplete.sh" => "oauth2_proxy"
|
||||
"-o", bin/"oauth2-proxy"
|
||||
(etc/"oauth2-proxy").install "contrib/oauth2-proxy.cfg.example"
|
||||
bash_completion.install "contrib/oauth2-proxy_autocomplete.sh" => "oauth2-proxy"
|
||||
end
|
||||
|
||||
def caveats
|
||||
<<~EOS
|
||||
#{etc}/oauth2_proxy/oauth2_proxy.cfg must be filled in.
|
||||
#{etc}/oauth2-proxy/oauth2-proxy.cfg must be filled in.
|
||||
EOS
|
||||
end
|
||||
|
||||
plist_options :manual => "oauth2_proxy"
|
||||
plist_options :manual => "oauth2-proxy"
|
||||
|
||||
def plist
|
||||
<<~EOS
|
||||
|
@ -44,8 +44,8 @@ class Oauth2Proxy < Formula
|
|||
<true/>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>#{opt_bin}/oauth2_proxy</string>
|
||||
<string>--config=#{etc}/oauth2_proxy/oauth2_proxy.cfg</string>
|
||||
<string>#{opt_bin}/oauth2-proxy</string>
|
||||
<string>--config=#{etc}/oauth2-proxy/oauth2-proxy.cfg</string>
|
||||
</array>
|
||||
<key>WorkingDirectory</key>
|
||||
<string>#{HOMEBREW_PREFIX}</string>
|
||||
|
@ -60,13 +60,14 @@ class Oauth2Proxy < Formula
|
|||
port = free_port
|
||||
|
||||
pid = fork do
|
||||
exec "#{bin}/oauth2_proxy",
|
||||
exec "#{bin}/oauth2-proxy",
|
||||
"--client-id=testing",
|
||||
"--client-secret=testing",
|
||||
"--cookie-secret=testing",
|
||||
# Cookie secret must be 16, 24, or 32 bytes to create an AES cipher
|
||||
"--cookie-secret=0b425616d665d89fb6ee917b7122b5bf",
|
||||
"--http-address=127.0.0.1:#{port}",
|
||||
"--upstream=file:///tmp",
|
||||
"-email-domain=*"
|
||||
"--email-domain=*"
|
||||
end
|
||||
|
||||
begin
|
||||
|
|
Loading…
Reference in New Issue