Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthenticator ¶
func NewAuthenticator(p *policy.Policy, key *rsa.PrivateKey, nodeID string) authn.Authenticator
Types ¶
type Responder ¶ added in v1.3.2
func (*Responder) Respond ¶ added in v1.3.2
func (r *Responder) Respond(request *json.RawMessage) ([]byte, error)
Returns a responder that responds to authentication requirements of type `authn.MethodTypeAsk`. Reads the JSON Schema returned by the `ask` endpoint and uses it to ask appropriate questions to the user on their terminal, and then returns their response as serialized JSON.
Click to show internal directories.
Click to hide internal directories.