forked from mystiq/dex
Merge pull request #835 from rithujohn191/fix-client-example
examples/grpc-client: minor corrections in the dex client example.
This commit is contained in:
commit
6dd415997a
2 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ Running the gRPC client will cause the following API calls to be made to the ser
|
||||||
Run the following command to destroy all the credentials files that were created by the `cert-gen` script:
|
Run the following command to destroy all the credentials files that were created by the `cert-gen` script:
|
||||||
|
|
||||||
```
|
```
|
||||||
./examples/grpc-client/cert-destory
|
./examples/grpc-client/cert-destroy
|
||||||
```
|
```
|
||||||
[api-proto]: ../../api/api.proto
|
[api-proto]: ../../api/api.proto
|
||||||
[client]: client.go
|
[client]: client.go
|
||||||
|
|
|
@ -49,7 +49,7 @@ func main() {
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
if *clientCrt == "" || *caCrt == "" || *clientKey == "" {
|
if *clientCrt == "" || *caCrt == "" || *clientKey == "" {
|
||||||
log.Fatal("Please provide CA & client certificates and client key. Usage: ./client -ca_crt=<path ca.crt> -client_crt=<path client.crt> -client_key=<path client key>")
|
log.Fatal("Please provide CA & client certificates and client key. Usage: ./client --ca-crt=<path ca.crt> --client-crt=<path client.crt> --client-key=<path client key>")
|
||||||
}
|
}
|
||||||
|
|
||||||
client, err := newDexClient("127.0.0.1:5557", *caCrt, *clientCrt, *clientKey)
|
client, err := newDexClient("127.0.0.1:5557", *caCrt, *clientCrt, *clientKey)
|
||||||
|
|
Loading…
Reference in a new issue