gooauthinterface

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoOauthInterface

type GoOauthInterface interface {
	CheckoutMiddleware(requets *http.Request) bool
	GetSecretByClient(ctx context.Context) error
	CreateUser(ctx context.Context, userParam gooauthrequest.CreateUser, roleUser string, attributes *map[string][]string) (string, error)
	UpdateUser(ctx context.Context, keyCloakUserId string, attributes *map[string][]string, req gooauthrequest.UpdateUserRequest) error
	ErrorHandler() error
	GetUserByRole(ctx context.Context, role string) ([]*gooauthrest.User, error)
	LoginUser(ctx context.Context, userName, password string) (*gooauthrest.JWT, error)

	GetUserByUserId(ctx context.Context, keycloakId string) (*gooauthrest.User, error)
	GetUsersByUsersId(ctx context.Context, keycloakUsersId []string) ([]gooauthrest.User, error)
	ChangePassword(ctx context.Context, keycloakUserId, newPassword string) error
	ValidateMailByUserId(ctx context.Context, userId string) error
}

Jump to

Keyboard shortcuts

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