Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestAuthWriter ¶
func NewTestAuthWriter(role, err string) runtime.ClientAuthInfoWriter
NewTestAuthWriter creates TestAuthWriter that injects the passed role and error in the token
func ParseTestToken ¶
func ParseTestToken(token string, _ []byte) (*handlers.TokenClaims, error)
ParseTestToken parses the test token it should contain two strings role and error or NIL.
Types ¶
type TestAuthWriter ¶
type TestAuthWriter struct {
// contains filtered or unexported fields
}
TestAuthWriter will implement authentication on test server
func (TestAuthWriter) AuthenticateRequest ¶
func (taw TestAuthWriter) AuthenticateRequest(cr runtime.ClientRequest, reg strfmt.Registry) error
AuthenticateRequest implements the ClientAuthInfoWriter interface
Click to show internal directories.
Click to hide internal directories.