chooseidphtml

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSS

func CSS() string

CSS returns the minified CSS that will be embedded into the page template.

func ContentSecurityPolicy

func ContentSecurityPolicy() string

ContentSecurityPolicy returns the Content-Security-Policy header value to make the Template() operate correctly.

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy.

func JS

func JS() string

JS returns the minified JS that will be embedded into the page template.

func Template

func Template() *template.Template

Template returns the html/template.Template for rendering the login page.

Types

type IdentityProvider

type IdentityProvider struct {
	DisplayName string
	URL         string
}

type PageData

type PageData struct {
	IdentityProviders []IdentityProvider
}

PageData represents the inputs to the template.

Jump to

Keyboard shortcuts

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