Move the example app to th examples folder
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
@@ -142,10 +142,17 @@ $ kubectl create -f dex.yaml
|
||||
|
||||
## Logging into the cluster
|
||||
|
||||
The `example-app` can be used to log into the cluster and get an ID Token. To build the app, you can run `make` in the root of the repo and it will build the `example-app` binary in the repo's `bin` directory. To build the `example-app` requires at least a 1.7 version of Go.
|
||||
The `example-app` can be used to log into the cluster and get an ID Token. To build the app, run the following commands:
|
||||
|
||||
```bash
|
||||
cd examples/example-app
|
||||
go install .
|
||||
```
|
||||
$ ./bin/example-app --issuer https://dex.example.com:32000 --issuer-root-ca examples/k8s/ssl/ca.pem
|
||||
|
||||
To build the `example-app` requires at least a 1.7 version of Go.
|
||||
|
||||
```bash
|
||||
$ example-app --issuer https://dex.example.com:32000 --issuer-root-ca examples/k8s/ssl/ca.pem
|
||||
```
|
||||
|
||||
Please note that the `example-app` will listen at http://127.0.0.1:5555 and can be changed with the `--listen` flag.
|
||||
|
@@ -185,7 +185,7 @@ func authorize(ctx context.Context, bearerToken string) (*user, error) {
|
||||
[api-server]: https://kubernetes.io/docs/admin/authentication/#openid-connect-tokens
|
||||
[dex-flow]: img/dex-flow.png
|
||||
[dex-backend-flow]: img/dex-backend-flow.png
|
||||
[example-app]: ../cmd/example-app
|
||||
[example-app]: ../examples/example-app
|
||||
[oauth2-threat-model]: https://tools.ietf.org/html/rfc6819
|
||||
[go-oidc]: https://godoc.org/github.com/coreos/go-oidc
|
||||
[go-oauth2]: https://godoc.org/golang.org/x/oauth2
|
||||
|
Reference in New Issue
Block a user