security

package
v0.0.0-...-104d9a6 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthClient

type AuthClient struct {
	Client       *gocloak.GoCloak
	URL          string
	Realm        string
	ClientID     string
	ClientSecret string
}

func (*AuthClient) GetRolesFromToken

func (authClient *AuthClient) GetRolesFromToken(ctx context.Context, accessToken string) ([]string, error)

func (*AuthClient) GetUserFromToken

func (authClient *AuthClient) GetUserFromToken(ctx context.Context, accessToken string) (*models.User, error)

func (*AuthClient) Initialize

func (authClient *AuthClient) Initialize(authURL, authRealm, authClientID, authClientSecret string)

func (*AuthClient) RetrospectToken

func (authClient *AuthClient) RetrospectToken(ctx context.Context, accessToken string) error

Jump to

Keyboard shortcuts

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