testutil

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestAuthUser     = "clouditor"
	TestAuthPassword = "clouditor"

	TestAuthClientID     = "client"
	TestAuthClientSecret = "secret"
)

Variables

This section is empty.

Functions

func AuthClientConfig

func AuthClientConfig(port int) *clientcredentials.Config

func AuthURL

func AuthURL(port int) string

func JWKSURL

func JWKSURL(port int) string

func StartAuthenticationServer

func StartAuthenticationServer() (srv *oauth2.AuthorizationServer, port int, err error)

StartAuthenticationServer starts an authentication server on a random port with users and clients specified in the TestAuthUser and TestAuthClientID constants.

func TokenURL

func TokenURL(port int) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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