selectprovider

package
v3.7.0-alpha.1+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2017 License: Apache-2.0 Imports: 7 Imported by: 0 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

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 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.

func ValidateSelectProviderTemplate

func ValidateSelectProviderTemplate(templateContent []byte) []error

Types

type ProviderData

type ProviderData struct {
	Providers []handlers.ProviderInfo
}

type SelectProvider

type SelectProvider struct {
	// contains filtered or unexported fields
}

func NewSelectProvider

func NewSelectProvider(render SelectProviderRenderer, forceInterstitial bool) *SelectProvider

func (*SelectProvider) SelectAuthentication

func (s *SelectProvider) SelectAuthentication(providers []handlers.ProviderInfo, w http.ResponseWriter, req *http.Request) (*handlers.ProviderInfo, bool, error)

type SelectProviderRenderer

type SelectProviderRenderer interface {
	Render(redirectors []handlers.ProviderInfo, w http.ResponseWriter, req *http.Request)
}

Jump to

Keyboard shortcuts

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