authstructs

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: BSD-3-Clause Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AllAuthData containerAuthData
)

Functions

This section is empty.

Types

type AuthDefinition

type AuthDefinition struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	// SemVer is a specific semantic version tracker you can use for your payload type
	SemVer                string   `json:"semver"`
	IDPServices           []string `json:"idp_services"`
	NonIDPServices        []string `json:"non_idp_services"`
	GetIDPMetadata        func(GetIDPMetadataMessage) GetIDPMetadataMessageResponse
	GetIDPRedirect        func(GetIDPRedirectMessage) GetIDPRedirectMessageResponse
	ProcessIDPResponse    func(ProcessIDPResponseMessage) ProcessIDPResponseMessageResponse
	GetNonIDPMetadata     func(GetNonIDPMetadataMessage) GetNonIDPMetadataMessageResponse
	GetNonIDPRedirect     func(GetNonIDPRedirectMessage) GetNonIDPRedirectMessageResponse
	ProcessNonIDPResponse func(ProcessNonIDPResponseMessage) ProcessNonIDPResponseMessageResponse
	// Subscriptions - don't bother here, this will be auto filled out on syncing
	Subscriptions            []string                                                                                  `json:"subscriptions"`
	OnContainerStartFunction func(sharedStructs.ContainerOnStartMessage) sharedStructs.ContainerOnStartMessageResponse `json:"-"`
}

type GetIDPMetadataMessage

type GetIDPMetadataMessage struct {
	ContainerName string `json:"container_name"`
	ServerName    string `json:"server_name"`
	IDPName       string `json:"idp_name"`
}

type GetIDPMetadataMessageResponse

type GetIDPMetadataMessageResponse struct {
	Success  bool   `json:"success"`
	Error    string `json:"error"`
	Metadata string `json:"metadata"`
}

type GetIDPRedirectMessage

type GetIDPRedirectMessage struct {
	ContainerName  string            `json:"container_name"`
	ServerName     string            `json:"server_name"`
	IDPName        string            `json:"idp_name"`
	RequestURL     string            `json:"request_url"`
	RequestHeaders map[string]string `json:"request_headers"`
	RequestCookies map[string]string `json:"request_cookies"`
	RequestQuery   map[string]string `json:"request_query"`
}

type GetIDPRedirectMessageResponse

type GetIDPRedirectMessageResponse struct {
	Success         bool              `json:"success"`
	Error           string            `json:"error"`
	RedirectURL     string            `json:"redirect_url"`
	RedirectHeaders map[string]string `json:"redirect_headers"`
	RedirectCookies map[string]string `json:"redirect_cookies"`
}

type GetNonIDPMetadataMessage

type GetNonIDPMetadataMessage struct {
	ContainerName string `json:"container_name"`
	ServerName    string `json:"server_name"`
	NonIDPName    string `json:"nonidp_name"`
}

type GetNonIDPMetadataMessageResponse

type GetNonIDPMetadataMessageResponse struct {
	Success  bool   `json:"success"`
	Error    string `json:"error"`
	Metadata string `json:"metadata"`
}

type GetNonIDPRedirectMessage

type GetNonIDPRedirectMessage struct {
	ContainerName string `json:"container_name"`
	ServerName    string `json:"server_name"`
	NonIDPName    string `json:"nonidp_name"`
}

type GetNonIDPRedirectMessageResponse

type GetNonIDPRedirectMessageResponse struct {
	Success       bool     `json:"success"`
	Error         string   `json:"error"`
	RequestFields []string `json:"request_fields"`
}

type ProcessIDPResponseMessage

type ProcessIDPResponseMessage struct {
	ContainerName  string            `json:"container_name"`
	ServerName     string            `json:"server_name"`
	IDPName        string            `json:"idp_name"`
	RequestURL     string            `json:"request_url"`
	RequestHeaders map[string]string `json:"request_headers"`
	RequestCookies map[string]string `json:"request_cookies"`
	RequestQuery   map[string]string `json:"request_query"`
	RequestBody    string            `json:"request_body"`
}

type ProcessIDPResponseMessageResponse

type ProcessIDPResponseMessageResponse struct {
	SuccessfulAuthentication bool   `json:"successful_authentication"`
	Error                    string `json:"error"`
	Email                    string `json:"email"`
}

type ProcessNonIDPResponseMessage

type ProcessNonIDPResponseMessage struct {
	ContainerName string            `json:"container_name"`
	ServerName    string            `json:"server_name"`
	NonIDPName    string            `json:"idp_name"`
	RequestValues map[string]string `json:"request_values"`
}

type ProcessNonIDPResponseMessageResponse

type ProcessNonIDPResponseMessageResponse struct {
	SuccessfulAuthentication bool   `json:"successful_authentication"`
	Error                    string `json:"error"`
	Email                    string `json:"email"`
}

Jump to

Keyboard shortcuts

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