idp

package
v0.0.0-...-d3aec4a Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LdapIDP

type LdapIDP struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

type OidcIdp

type OidcIdp struct {
	// Name represents what the OIDC IDP is commonly referred to as.
	Name string

	// LoginUrl is the full web address of where a user logs in.
	// For example, "https://webpage.com/login".
	LoginUrl *url.URL

	// FormActionUrl is the web address of where the login form is submitted.
	// For example, "https://webpage.com/authenticate".
	FormActionUrl *url.URL

	// UsernameInputName is the value of the HTML name attribute where the user inputs their username.
	// For example, "username".
	UsernameInputName string

	// PasswordInputName is the value of the HTML name attribute where the user inputs their password.
	// For example, "password".
	PasswordInputName string

	// HiddenInputName is the name of a state parameter often used to prevent CSRF attacks.
	// This value will attempted to be parsed from the URL's query params after all redirects are done.
	// The value will be submitted as part of the form. For example, "csrfState".
	HiddenInputName string
}

Jump to

Keyboard shortcuts

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