-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add auth support for server mode (#283)
* chore: refactory the body verify * feat: add auth support --------- Co-authored-by: rick <[email protected]>
- Loading branch information
1 parent
1241aa8
commit d300c4b
Showing
52 changed files
with
2,859 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,6 +129,9 @@ grpc-gw: | |
--grpc-gateway_opt logtostderr=true \ | ||
--grpc-gateway_opt paths=source_relative \ | ||
--grpc-gateway_opt generate_unbound_methods=true \ | ||
--openapiv2_out . \ | ||
--openapiv2_opt logtostderr=true \ | ||
--openapiv2_opt generate_unbound_methods=true \ | ||
pkg/server/server.proto | ||
grpc-java: | ||
protoc --plugin=protoc-gen-grpc-java \ | ||
|
@@ -162,12 +165,15 @@ grpc-testproto: | |
--go-grpc_out=. --go-grpc_opt=paths=source_relative \ | ||
pkg/runner/grpc_test/test.proto | ||
|
||
install-tool: | ||
hd: | ||
curl https://linuxsuren.github.io/tools/install.sh|bash | ||
install-tool: hd | ||
go install google.golang.org/protobuf/cmd/[email protected] | ||
go install google.golang.org/grpc/cmd/[email protected] | ||
hd i protoc-gen-grpc-web | ||
hd i protoc-gen-grpc-gateway | ||
init-env: | ||
curl https://linuxsuren.github.io/tools/install.sh|bash | ||
sudo hd get https://github.com/grpc-ecosystem/grpc-gateway/releases/download/v2.18.1/protoc-gen-openapiv2-v2.18.1-linux-x86_64 -o /usr/local/bin/protoc-gen-openapiv2 | ||
sudo chmod +x /usr/local/bin/protoc-gen-openapiv2 | ||
init-env: hd | ||
hd i cli/cli | ||
gh extension install linuxsuren/gh-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.