keycloak

package
v0.4.33 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultTokenExpirationBuffer = 10 * time.Second
)

Functions

This section is empty.

Types

type AdminClient

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

func New

func New(
	domain string,
	provider TokenProvider,
	logger *slog.Logger,
) (*AdminClient, error)

func (*AdminClient) GetUserBySub

func (c *AdminClient) GetUserBySub(ctx context.Context, sub string) (*authmgmt.User, error)

type TokenProvider

type TokenProvider interface {
	GetToken(context.Context) (string, error)
}

Jump to

Keyboard shortcuts

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