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.
Click to show internal directories.
Click to hide internal directories.