Documentation
¶
Index ¶
- func CreateOidcTokenStringHandler(issuer string, clientId string, userName string) func(j *Jwt) string
- func ExpectErrorMessage(resp *http.Response, expectedMsg string)
- func ExpectRegexErrorMessage(resp *http.Response, expectedRegexMsg string, args ...interface{})
- func GenerateJwt(strGen func(*Jwt) string, jwtSecret string, expiresIn time.Duration) string
- func GenerateJwtWithName(strGen func(*Jwt) string, jwtSecret string, expiresIn time.Duration, ...) string
- func GenerateJwtWithRsaSignature(strGen func(*Jwt) string, rsaPrivateKey *rsa.PrivateKey, ...) string
- func GenerateRsaPrivateKey() *rsa.PrivateKey
- func InvalidTokenStringHandler(j *Jwt) string
- func SendGetRequest(url string, headers map[string]string) *http.Response
- func TokenStringHandler(j *Jwt) string
- func WithBearer(token string) string
- type Jwt
- type TestServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpectErrorMessage ¶
func ExpectRegexErrorMessage ¶
func GenerateJwt ¶
func GenerateJwtWithName ¶
func GenerateRsaPrivateKey ¶
func GenerateRsaPrivateKey() *rsa.PrivateKey
func TokenStringHandler ¶
func WithBearer ¶
Types ¶
type Jwt ¶
type Jwt struct {
// contains filtered or unexported fields
}
func NewRsaJwt ¶
func NewRsaJwt(privKey *rsa.PrivateKey) *Jwt
type TestServer ¶
type TestServer struct {
// contains filtered or unexported fields
}
func NewTestServer ¶
func NewTestServer(auth *middleware.Auth, enableLog bool) *TestServer
func (*TestServer) Context ¶
func (ts *TestServer) Context() context.Context
func (*TestServer) EndpointUrl ¶
func (ts *TestServer) EndpointUrl() string
func (*TestServer) StartInBackground ¶
func (ts *TestServer) StartInBackground()
func (*TestServer) Stop ¶
func (ts *TestServer) Stop()
Click to show internal directories.
Click to hide internal directories.