Need help with hello-auth-grpc?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

enricofoltran
207 Stars 14 Forks MIT License 2 Commits 0 Opened issues

Description

two grpc microservices with mutual TLS and token authentication in Go

Services available

!
?

Need anything else?

Contributors list

No Data

// create the config path $HOME/.hello make init

// generate keys and certs for mutual TLS and JWT signing // require cfssl and cfssljson installed // https://cfssl.org/ make gencert

// build the binaries // require dep, protoc and protoc-gen-go installed // https://github.com/golang/dep // https://github.com/google/protobuf // https://developers.google.com/protocol-buffers/docs/reference/go-generated make build

// start the hello service ./bin/hello-server

// start the auth service ./bin/auth-server --username=admin --password=p455w0rd

// get a valid JWT token by login with the auth client ./bin/auth-client --username=admin --password=p455w0rd

// call the hello service with the hello client, // will use the JWT token to authenticate your request ./bin/hello-client

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.