test

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL