keycloak

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: EUPL-1.2 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*gocloak.GoCloak
	// contains filtered or unexported fields
}

func NewClientFromProvider

func NewClientFromProvider(ctx context.Context, provider *configv1alpha1.KeycloakProvider) (*Client, error)

func NewClientFromSecret

func NewClientFromSecret(ctx context.Context, k8sCLI client.Client, secret *corev1.Secret) (*Client, error)

func (*Client) AccessToken

func (c *Client) AccessToken() string

func (*Client) IDPBaseURL

func (c *Client) IDPBaseURL() string

func (*Client) Login

func (c *Client) Login(ctx context.Context) error

func (*Client) Realm

func (c *Client) Realm() string

func (*Client) Token

func (c *Client) Token() *gocloak.JWT

func (*Client) URL

func (c *Client) URL() string

Jump to

Keyboard shortcuts

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