keycloak

package
v2.36.17 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAuthErrorElement = "span#input-error"
	DefaultAuthErrorMessage = "Invalid username or password."
)

Variables

This section is empty.

Functions

func CustomizeAuthErrorValidator added in v2.36.16

func CustomizeAuthErrorValidator(account *cfg.IDPAccount) (*authErrorValidator, error)

Types

type Client

type Client struct {
	provider.ValidateBase
	// contains filtered or unexported fields
}

Client wrapper around KeyCloak.

func New

func New(idpAccount *cfg.IDPAccount) (*Client, error)

New create a new KeyCloakClient

func (*Client) Authenticate

func (kc *Client) Authenticate(loginDetails *creds.LoginDetails) (string, error)

Authenticate logs into KeyCloak and returns a SAML response

Jump to

Keyboard shortcuts

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