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.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements the RPC server for token plugins.
type Token ¶
type Token struct {
// Value is the token or nil if error is not nil.
Value map[string]interface{}
// Error captures the error raised if any.
Error plugin.BasicError
}
Token represents an token response.
Click to show internal directories.
Click to hide internal directories.