oauthtest

package
v0.0.0-...-270f78c Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Zlib Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccessToken = "test-token"
)

Variables

This section is empty.

Functions

func OAuthRoutes

func OAuthRoutes(code string, config *portainer.OAuthSettings) http.Handler

OAuthRoutes is an OAuth 2.0 compliant handler

func RunOAuthServer

func RunOAuthServer(code string, config *portainer.OAuthSettings) (*httptest.Server, *portainer.OAuthSettings)

RunOAuthServer is a barebones OAuth 2.0 compliant test server which can be used to test OAuth 2 functionality

Types

This section is empty.

Jump to

Keyboard shortcuts

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