mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-21 14:35:22 +08:00
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20220127200216-cd36cc0744dd to 0.7.0. - [Release notes](https://github.com/golang/net/releases) - [Commits](https://github.com/golang/net/commits/v0.7.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Teleport Auth Go Client
This program demonstrates how to...
- Authenticate the client using credential loaders.
- Authorize API calls using an independent user and role.
- Create a new client and make API calls to the Auth server.
Demo
This demo can be used to quickly get the API client up and running.
Create resources
Create the access-admin user and role using the following commands:
$ tctl create -f access-admin.yaml
$ tctl users add access-admin --roles=access-admin
Generate Credentials
Login with tsh to generate Profile credentials.
# login and automatically generate keys
$ tsh login --user=access-admin
NOTE: You can pass the InsecureAddressDiscovery in client.Config field to skip verification of the TLS certificate of the proxy. Don't do this for production clients.
Run
$ go run main.go
Reference
To see more information on the Go Client and how to use it, visit our API documentation: