Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements the RPC client for token plugins.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin implements the plugin interface for token plugins.
type Provider ¶
type Provider interface { // Configure configures the provider or returns an error. Configure(config map[string]interface{}) plugin.BasicError // Token returns a token (i.e., a set of claims) for the provided subject and scopes. Token(subject string, scopes []string) Token }
Provider defines the interface for token providers.
Token providers convert a subject and a set of scopes into a token (i.e., a set of claims). The token will be used to identify the user or system making the request and any associated attributes.
Click to show internal directories.
Click to hide internal directories.