authstructs

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

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"`
	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