keycloak

package
v1.12.3 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: AGPL-3.0 Imports: 4 Imported by: 1

Documentation

Overview

Package keycloak is an identity provider that authenticates with keycloak oidc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIdentityProvider

func NewIdentityProvider(p Params) idp.IdentityProvider

NewIdentityProvider creates a keycloak identity provider with the configuration defined by p.

Types

type Params

type Params struct {
	// Name is the name that will be given to the identity provider.
	Name string `yaml:"name"`

	// Description is the description that will be used with the
	// identity provider. If this is not set then Name will be used.
	Description string `yaml:"description"`

	// Icon contains the URL or path of an icon.
	Icon string `yaml:"icon"`

	// Domain is the domain with which all identities created by this
	// identity provider will be tagged (not including the @ separator).
	Domain string `yaml:"domain"`

	// ClientID contains the Application Id for the application
	// registered
	ClientID string `yaml:"client-id"`

	// Optional: ClientSecret contains a password type Application Secret
	// for the application generated
	ClientSecret string `yaml:"client-secret"`

	// KeycloakReam contains the URI for the keycloak server
	// https://<keycloakserver>/auth/realms/<keycloakdomain>
	KeycloakRealm string `yaml:"keycloak-realm"`

	// Hidden is set if the IDP should be hidden from interactive
	// prompts.
	Hidden bool `yaml:"hidden"`
}

Params is a struct containing the configuration data to register a keycloak identity Provider

Jump to

Keyboard shortcuts

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