keycloak

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserWithAttribute

func UserWithAttribute(username string, attributeKey string, attributeValues ...string) *gocloak.User

Types

type Client

type Client interface {
	GetUsers(ctx context.Context, realm string, params gocloak.GetUsersParams) ([]*gocloak.User, error)
}

func NewClient

func NewClient(baseUrl, loginRealm, username, password string, tlsConfig *tls.Config) Client

type FakeClient

type FakeClient struct {
	Users []*gocloak.User
	// contains filtered or unexported fields
}

func (*FakeClient) FakeClientSetError

func (f *FakeClient) FakeClientSetError(err error)

func (*FakeClient) FakeClientSetUserAttribute

func (f *FakeClient) FakeClientSetUserAttribute(username string, attributeKey string, attributeValues ...string) error

func (*FakeClient) GetUsers

func (f *FakeClient) GetUsers(ctx context.Context, realm string, params gocloak.GetUsersParams) ([]*gocloak.User, error)

Jump to

Keyboard shortcuts

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