lib

package
v1.0.602 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLib

func NewLib() interfaces.Auth

Types

type Modules

type Modules struct {
	Option *interfaces.AuthOption
	// contains filtered or unexported fields
}

func (*Modules) AddAuthCode added in v0.0.3

func (c *Modules) AddAuthCode(enableTracing bool, ctx context.Context, req *auth.AuthCodeList) (code string, err error)

func (*Modules) AddGroupApplications added in v0.0.3

func (c *Modules) AddGroupApplications(enableTracing bool, ctx context.Context, req *auth.UsersGroupApplicationsListRequest) (err error)

func (*Modules) AddGroupScopes added in v0.0.3

func (c *Modules) AddGroupScopes(enableTracing bool, ctx context.Context, req *auth.UsersGroupScopesListRequest) (err error)

func (*Modules) AddUserApplication added in v0.0.3

func (c *Modules) AddUserApplication(enableTracing bool, ctx context.Context, req *auth.AddUsersApplicationRequest) (err error)

func (*Modules) AddUsersListGroups added in v0.0.3

func (c *Modules) AddUsersListGroups(enableTracing bool, ctx context.Context, req *auth.AddUsersListGroupsRequest) (err error)

func (*Modules) BasicTokenValidate

func (c *Modules) BasicTokenValidate(tok string) (err error)

func (*Modules) DelGroupApplications added in v0.0.3

func (c *Modules) DelGroupApplications(enableTracing bool, ctx context.Context, req *auth.UsersGroupApplicationsListRequest) (err error)

func (*Modules) DelGroupScopes added in v0.0.3

func (c *Modules) DelGroupScopes(enableTracing bool, ctx context.Context, req *auth.UsersGroupScopesListRequest) (err error)

func (*Modules) DelUserApplication added in v0.0.6

func (c *Modules) DelUserApplication(enableTracing bool, ctx context.Context, req *auth.DelUsersApplicationRequest) (err error)

func (*Modules) DelUsersListGroups added in v0.0.3

func (c *Modules) DelUsersListGroups(enableTracing bool, ctx context.Context, req *auth.DelUsersListGroupsRequest) (err error)

func (*Modules) DeleteApplication added in v0.0.3

func (c *Modules) DeleteApplication(enableTracing bool, ctx context.Context, req *auth.DeleteApplicationRequest) (res *emptypb.Empty, err error)

func (*Modules) DeleteScope added in v0.0.3

func (c *Modules) DeleteScope(enableTracing bool, ctx context.Context, req *auth.DeleteScopesRequest) (err error)

func (*Modules) DeleteUser added in v0.0.3

func (c *Modules) DeleteUser(enableTracing bool, ctx context.Context, requser *auth.UsersList, req *auth.UserDeleteRequest) (err error)

func (*Modules) DeleteUserGroup added in v0.0.3

func (c *Modules) DeleteUserGroup(enableTracing bool, ctx context.Context, req *auth.DeleteUserGroupRequest) (err error)

func (*Modules) DisableTwoFactorAuth added in v0.0.6

func (c *Modules) DisableTwoFactorAuth(enableTracing bool, ctx context.Context, userID, tokenid string, system bool) (err error)

func (*Modules) EditApplication added in v0.0.6

func (c *Modules) EditApplication(enableTracing bool, ctx context.Context, req *auth.EditApplicationRequest) (res *emptypb.Empty, err error)

func (*Modules) EditScope added in v0.0.3

func (c *Modules) EditScope(enableTracing bool, ctx context.Context, req *auth.ScopeList) (err error)

func (*Modules) EnableTwoFactorAuth added in v0.0.6

func (c *Modules) EnableTwoFactorAuth(enableTracing bool, ctx context.Context, userID string, secret string, enable, terminatedOtherSession bool, tokenid string, system bool) (err error)

func (*Modules) FindApplicationGroup added in v0.0.3

func (c *Modules) FindApplicationGroup(enableTracing bool, ctx context.Context, req *auth.ApplicationInList) (res *auth.ApplicationInList, err error)

func (*Modules) FindGroupScopes added in v0.0.3

func (c *Modules) FindGroupScopes(enableTracing bool, ctx context.Context, req *auth.GroupScopeInList) (res *auth.GroupScopeInList, err error)

func (*Modules) FindUsersGroup added in v0.0.3

func (c *Modules) FindUsersGroup(enableTracing bool, ctx context.Context, req *auth.UsersGroupInList) (res *auth.UsersGroupInList, err error)

func (*Modules) GenerateTwoFactorAuthUser added in v0.0.6

func (c *Modules) GenerateTwoFactorAuthUser(enableTracing bool, ctx context.Context, issuer string, req *auth.EnableTwoFactorAuthRequest) (res *auth.EnableTwoFactorAuthResponse, err error)

func (*Modules) GetApplication added in v0.0.3

func (c *Modules) GetApplication(enableTracing bool, ctx context.Context, req *auth.GetApplicationRequest) (res *auth.GetApplicationResponse, err error)

func (*Modules) GetModels added in v0.0.3

func (c *Modules) GetModels() interfaces.Models

func (*Modules) GetScopes added in v0.0.3

func (c *Modules) GetScopes(enableTracing bool, ctx context.Context, req *auth.GetScopesRequest) (res *auth.GetScopesResponse, err error)

func (*Modules) GetStorage added in v0.0.8

func (c *Modules) GetStorage() interfaces.Storage

func (*Modules) GetUsers added in v0.0.3

func (c *Modules) GetUsers(enableTracing bool, ctx context.Context, req *auth.GetUsersRequest) (res *auth.GetUsersResponse, err error)

func (*Modules) GetUsersApplications added in v0.0.6

func (c *Modules) GetUsersApplications(enableTracing bool, ctx context.Context, req *auth.GetUsersApplicationRequest) (res *auth.GetUsersApplicationResponse, err error)

func (*Modules) GetUsersGroup added in v0.0.3

func (c *Modules) GetUsersGroup(enableTracing bool, ctx context.Context, req *auth.GetUsersGroupRequest) (res *auth.GetUsersGroupResponse, err error)

func (*Modules) GetUsersGroupApplications added in v0.0.3

func (c *Modules) GetUsersGroupApplications(enableTracing bool, ctx context.Context, req *auth.GetUsersGroupApplicationsRequest) (res *auth.GetUsersGroupApplicationsResponse, err error)

func (*Modules) GetUsersGroupScopes added in v0.0.3

func (c *Modules) GetUsersGroupScopes(enableTracing bool, ctx context.Context, req *auth.GetUsersGroupScopesRequest) (res *auth.GetUsersGroupScopesResponse, err error)

func (*Modules) GetUsersListGroups added in v0.0.3

func (c *Modules) GetUsersListGroups(enableTracing bool, ctx context.Context, req *auth.GetUsersListGroupsRequest) (res *auth.GetUsersListGroupsResponse, err error)

func (*Modules) Init

func (c *Modules) Init(option *interfaces.AuthOption) error

func (*Modules) InsertLogs added in v0.0.3

func (c *Modules) InsertLogs(enableTracing bool, ctx context.Context, req *auth.LogsList) (err error)

func (*Modules) NewApplication added in v0.0.3

func (c *Modules) NewApplication(enableTracing bool, ctx context.Context, req *auth.NewApplicationRequest) (res *auth.ApplicationList, err error)

func (*Modules) NewScope added in v0.0.3

func (c *Modules) NewScope(enableTracing bool, ctx context.Context, req *auth.ScopeList) (res *auth.ScopeList, err error)

func (*Modules) NewUser added in v0.0.3

func (c *Modules) NewUser(enableTracing bool, ctx context.Context, req *auth.NewUserRequest) (res *auth.UsersList, err error)

func (*Modules) NewUserGroup added in v0.0.3

func (c *Modules) NewUserGroup(enableTracing bool, ctx context.Context, req *auth.UsersGroupList) (res *auth.UsersGroupList, err error)

func (*Modules) TerminatedOthersSession added in v1.0.601

func (c *Modules) TerminatedOthersSession(enableTracing bool, ctx context.Context, userID string, system bool, password, tokenId string) (err error)

func (*Modules) UpdateSingleFieldUser added in v0.0.6

func (c *Modules) UpdateSingleFieldUser(enableTracing bool, ctx context.Context, userID string, system bool, values map[string]interface{}) (err error)

func (*Modules) UseBasicToken

func (c *Modules) UseBasicToken(dir string) (err error)

func (*Modules) UseBasicTokenWithPreload added in v0.0.4

func (c *Modules) UseBasicTokenWithPreload(dir, token string) (err error)

func (*Modules) UseJWT added in v0.0.8

func (c *Modules) UseJWT() (j interfaces.Services, err error)

func (*Modules) UserChangePassword added in v0.0.3

func (c *Modules) UserChangePassword(enableTracing bool, ctx context.Context, byPassCheckingOldPassword bool, requser *auth.UsersList, req *auth.ChangePasswordRequest, tokenid string) (res *auth.UsersList, err error)

func (*Modules) UserEdit added in v0.0.3

func (c *Modules) UserEdit(enableTracing bool, ctx context.Context, reqUser *auth.UsersList, req *auth.UserEditRequest) (res *auth.UsersList, err error)

func (*Modules) ValidateOTPConfig added in v0.0.6

func (c *Modules) ValidateOTPConfig(secret string, code int32) (err error)

Directories

Path Synopsis
models

Jump to

Keyboard shortcuts

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