package
0.12.0
Repository: https://github.com/rotationalio/go-ensign.git
Documentation: pkg.go.dev

# Packages

Package authtest provides some simple JWT token testing functionality for use in Ensign SDK tests.

# Functions

No description provided by the author
Create a new authentication client to connect to Quarterdeck.
No description provided by the author
No description provided by the author
PerRPCToken returns a CallOption to attach access tokens to a single RPC call.
WithPerRPCToken returns a DialOption to ensure that the credentials are attached to every RPC call but only have to be specified once by the dialer.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author

# Structs

APIKey wraps per-project Ensign credentials and can be stored as JSON on disk.
Client connects to the Quarterdeck authentication service in order to authenticate API Keys and to refresh access tokens for Ensign access.
Credentials implement the credentials.PerRPCCredentials interface so that the access token can be embedded in the metadata of each RPC call for authentication and authorization.
Reply contains standard fields that are used for generic API responses and errors.
Status describes the current state of the Quarterdeck service.
StatusError decodes an error response from Quarterdeck.
Tokens are handed out by Quarterdeck to login to the Ensign service.