Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add authn protocol #7

Merged
merged 12 commits into from
Aug 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dev/ts/generate
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ set -e
)

rm -f ./ts/**/*.pb.ts
docker run --rm -i -v${PWD}:/code xmtp/protoc -I=./proto --grpc-gateway-ts_out=ts message_api/v1/message_api.proto
docker run --rm -i -v${PWD}:/code xmtp/protoc -I=./proto --grpc-gateway-ts_out=ts message_api/v1/message_api.proto
docker run --rm -i -v${PWD}:/code xmtp/protoc -I=./proto --plugin=/usr/local/lib/node_modules/ts-proto/protoc-gen-ts_proto --ts_proto_out=./ts --ts_proto_opt=fileSuffix=.pb --ts_proto_opt=esModuleInterop=true message_api/v1/authn.proto
4 changes: 2 additions & 2 deletions dev/ts/protoc/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM golang:1.18

RUN apt-get -qq update && \
apt-get -y install protobuf-compiler
apt-get -y install protobuf-compiler nodejs npm

COPY protoc.sh /opt/protoc

# Install some plugins.
RUN go install github.com/grpc-ecosystem/protoc-gen-grpc-gateway-ts@latest
RUN go install github.com/grpc-ecosystem/protoc-gen-grpc-gateway-ts@latest && npm i -g ts-proto

# Vendor some dependencies.
RUN mkdir -p /opt/proto && \
Expand Down
2 changes: 1 addition & 1 deletion go/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ import (
)

//go:generate go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
//go:generate protoc --proto_path=../proto -I=. -I=../build/tmp/vendor --go_out=. --go-grpc_out=. --grpc-gateway_out=generate_unbound_methods=true:. ../proto/message_api/v1/message_api.proto
//go:generate protoc --proto_path=../proto -I=. -I=../build/tmp/vendor --go_out=. --go-grpc_out=. --grpc-gateway_out=generate_unbound_methods=true:. ../proto/message_api/v1/message_api.proto ../proto/message_api/v1/authn.proto
Loading