Documentation ¶
Index ¶
- Constants
- func NewBootstrapSelectProvider(delegate handlers.AuthenticationSelectionHandler, ...) handlers.AuthenticationSelectionHandler
- func NewSelectProvider(render SelectProviderRenderer, forceInterstitial bool) handlers.AuthenticationSelectionHandler
- func NewSelectProviderRenderer(customSelectProviderTemplateFile string) (*selectProviderTemplateRenderer, error)
- func ValidateSelectProviderTemplate(templateContent []byte) []error
- type ProviderData
- type SelectProviderRenderer
Constants ¶
View Source
const SelectProviderTemplateExample = `` /* 1247-byte string literal not displayed */
SelectProviderTemplateExample is a basic template for customizing the provider selection page.
Variables ¶
This section is empty.
Functions ¶
func NewBootstrapSelectProvider ¶
func NewBootstrapSelectProvider(delegate handlers.AuthenticationSelectionHandler, getter bootstrap.BootstrapUserDataGetter) handlers.AuthenticationSelectionHandler
func NewSelectProvider ¶
func NewSelectProvider(render SelectProviderRenderer, forceInterstitial bool) handlers.AuthenticationSelectionHandler
func NewSelectProviderRenderer ¶
func NewSelectProviderRenderer(customSelectProviderTemplateFile string) (*selectProviderTemplateRenderer, error)
NewSelectProviderRenderer creates a select provider renderer that takes in an optional custom template to allow branding of the page. Uses the default if customSelectProviderTemplateFile is not set.
Types ¶
type ProviderData ¶
type ProviderData struct {
Providers []api.ProviderInfo
}
type SelectProviderRenderer ¶
type SelectProviderRenderer interface {
Render(redirectors []api.ProviderInfo, w http.ResponseWriter, req *http.Request)
}
Click to show internal directories.
Click to hide internal directories.