keycloak

package
v0.0.66 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package keycloak provides an implementation of the Keycloak IdentityProvider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyCloak

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

KeyCloak is an implementation of the auth.IdentityProvider interface.

func NewKeyCloak

func NewKeyCloak(name string, cfg serverconfig.IdentityConfig) (*KeyCloak, error)

NewKeyCloak creates a new KeyCloak identity provider.

func (*KeyCloak) Resolve

func (k *KeyCloak) Resolve(ctx context.Context, id string) (*auth.Identity, error)

Resolve implements auth.IdentityProvider.

func (*KeyCloak) String

func (k *KeyCloak) String() string

String implements auth.IdentityProvider.

func (*KeyCloak) URL

func (k *KeyCloak) URL() url.URL

URL implements auth.IdentityProvider.

func (*KeyCloak) Validate

func (k *KeyCloak) Validate(_ context.Context, token jwt.Token) (*auth.Identity, error)

Validate implements auth.IdentityProvider.

Directories

Path Synopsis
Package client provides primitives to interact with the openapi HTTP API.
Package client provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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