auth

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpAuthenticationController

func NewHttpAuthenticationController(authConfig AuthenticationConfig, httpServer HttpServer, httpClient *http.Client,
	credentialsStore credentials.Store) *httpAuthenticationController

NewHttpAuthenticationController creates a new instance of 'httpAuthenticationController'.

Types

type AuthenticationConfig

type AuthenticationConfig struct {
	AuthenticationEndpoint string
	CredentialsStore       string
	PreviousInstanceID     string
}

AuthenticationConfig represents the settings for an authentication.

type HttpServer

type HttpServer interface {
	// ListenAndServe listens on the TCP network address and then calls Serve to handle requests on
	// incoming connections.
	ListenAndServe() error
	// Shutdown shuts down the server without interrupting any active connections.
	Shutdown(ctx context.Context) error
}

HttpServer wraps the http.Server type for enhanced testability.

func NewHttpServer

func NewHttpServer(addr string) HttpServer

NewHttpServer creates a new instance of HttpServer.

type SystemToken

type SystemToken struct {
	ID     string `json:"id"`
	Secret string `json:"secret"`
}

SystemToken contains data for authentication against the Cloudogu Ecosystem Backend.

Jump to

Keyboard shortcuts

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