Documentation
¶
Index ¶
- type CommunicationConfig
- type Config
- type JWTConfig
- type Repository
- type SecurityConfig
- type Service
- func (s *Service) AssignPermissionsToGroup(ctx context.Context, req *openauth_v1.AssignPermissionsToGroupRequest) (*openauth_v1.AssignPermissionsToGroupResponse, error)
- func (s *Service) AssignPermissionsToUser(ctx context.Context, req *openauth_v1.AssignPermissionsToUserRequest) (*openauth_v1.AssignPermissionsToUserResponse, error)
- func (s *Service) AssignUsersToGroup(ctx context.Context, req *openauth_v1.AssignUsersToGroupRequest) (*openauth_v1.AssignUsersToGroupResponse, error)
- func (s *Service) ChangePassword(ctx context.Context, req *openauth_v1.ChangePasswordRequest) (*openauth_v1.ChangePasswordResponse, error)
- func (s *Service) CheckEmail(ctx context.Context, req *openauth_v1.CheckEmailRequest) (*openauth_v1.CheckEmailResponse, error)
- func (s *Service) CheckUsername(ctx context.Context, req *openauth_v1.CheckUsernameRequest) (*openauth_v1.CheckUsernameResponse, error)
- func (s *Service) CreateConfig(ctx context.Context, req *openauth_v1.CreateConfigRequest) (*openauth_v1.Config, error)
- func (s *Service) CreateConfigEntity(ctx context.Context, req *openauth_v1.CreateConfigEntityRequest) (*openauth_v1.ConfigEntity, error)
- func (s *Service) CreateGroup(ctx context.Context, req *openauth_v1.CreateGroupRequest) (*openauth_v1.CreateGroupResponse, error)
- func (s *Service) CreatePermission(ctx context.Context, req *openauth_v1.CreatePermissionRequest) (*openauth_v1.Permission, error)
- func (s *Service) CreateProfile(ctx context.Context, req *openauth_v1.CreateProfileRequest) (*openauth_v1.CreateProfileResponse, error)
- func (s *Service) DeleteConfig(ctx context.Context, req *openauth_v1.DeleteConfigRequest) (*openauth_v1.DeleteResponse, error)
- func (s *Service) DeleteConfigEntity(ctx context.Context, req *openauth_v1.DeleteConfigEntityRequest) (*openauth_v1.DeleteResponse, error)
- func (s *Service) DeleteGroup(ctx context.Context, req *openauth_v1.DeleteGroupRequest) (*openauth_v1.DeleteGroupResponse, error)
- func (s *Service) DeletePermission(ctx context.Context, req *openauth_v1.DeletePermissionRequest) (*openauth_v1.DeletePermissionResponse, error)
- func (s *Service) DeleteProfile(ctx context.Context, req *openauth_v1.DeleteProfileRequest) (*openauth_v1.DeleteProfileResponse, error)
- func (s *Service) DeleteUser(ctx context.Context, req *openauth_v1.DeleteUserRequest) (*openauth_v1.DeleteUserResponse, error)
- func (s *Service) GetConfig(ctx context.Context, req *openauth_v1.GetConfigRequest) (*openauth_v1.Config, error)
- func (s *Service) GetConfigEntity(ctx context.Context, req *openauth_v1.GetConfigEntityRequest) (*openauth_v1.ConfigEntity, error)
- func (s *Service) GetConfigsByKeys(ctx context.Context, req *openauth_v1.GetConfigsByKeysRequest) (*openauth_v1.GetConfigsByKeysResponse, error)
- func (s *Service) GetGroup(ctx context.Context, req *openauth_v1.GetGroupRequest) (*openauth_v1.GetGroupResponse, error)
- func (s *Service) GetPermission(ctx context.Context, req *openauth_v1.GetPermissionRequest) (*openauth_v1.Permission, error)
- func (s *Service) GetUser(ctx context.Context, req *openauth_v1.GetUserRequest) (*openauth_v1.GetUserResponse, error)
- func (s *Service) GetUserEffectivePermissions(ctx context.Context, req *openauth_v1.GetUserEffectivePermissionsRequest) (*openauth_v1.GetUserEffectivePermissionsResponse, error)
- func (s *Service) ListConfigEntities(ctx context.Context, req *openauth_v1.ListConfigEntitiesRequest) (*openauth_v1.ListConfigEntitiesResponse, error)
- func (s *Service) ListConfigs(ctx context.Context, req *openauth_v1.ListConfigsRequest) (*openauth_v1.ListConfigsResponse, error)
- func (s *Service) ListGroupPermissions(ctx context.Context, req *openauth_v1.ListGroupPermissionsRequest) (*openauth_v1.ListGroupPermissionsResponse, error)
- func (s *Service) ListGroupUsers(ctx context.Context, req *openauth_v1.ListGroupUsersRequest) (*openauth_v1.ListGroupUsersResponse, error)
- func (s *Service) ListGroups(ctx context.Context, req *openauth_v1.ListGroupsRequest) (*openauth_v1.ListGroupsResponse, error)
- func (s *Service) ListPermissions(ctx context.Context, req *openauth_v1.ListPermissionsRequest) (*openauth_v1.ListPermissionsResponse, error)
- func (s *Service) ListUserGroups(ctx context.Context, req *openauth_v1.ListUserGroupsRequest) (*openauth_v1.ListUserGroupsResponse, error)
- func (s *Service) ListUserPermissions(ctx context.Context, req *openauth_v1.ListUserPermissionsRequest) (*openauth_v1.ListUserPermissionsResponse, error)
- func (s *Service) ListUserProfiles(ctx context.Context, req *openauth_v1.ListUserProfilesRequest) (*openauth_v1.ListUserProfilesResponse, error)
- func (s *Service) ListUserSessions(ctx context.Context, req *openauth_v1.ListUserSessionsRequest) (*openauth_v1.ListUserSessionsResponse, error)
- func (s *Service) ListUsers(ctx context.Context, req *openauth_v1.ListUsersRequest) (*openauth_v1.ListUsersResponse, error)
- func (s *Service) Logout(ctx context.Context, req *openauth_v1.LogoutRequest) (*openauth_v1.LogoutResponse, error)
- func (s *Service) Ping(ctx context.Context, req *openauth_v1.PingRequest) (*openauth_v1.PingResponse, error)
- func (s *Service) RefreshToken(ctx context.Context, req *openauth_v1.RefreshTokenRequest) (*openauth_v1.RefreshTokenResponse, error)
- func (s *Service) RemovePermissionsFromGroup(ctx context.Context, req *openauth_v1.RemovePermissionsFromGroupRequest) (*openauth_v1.RemovePermissionsFromGroupResponse, error)
- func (s *Service) RemovePermissionsFromUser(ctx context.Context, req *openauth_v1.RemovePermissionsFromUserRequest) (*openauth_v1.RemovePermissionsFromUserResponse, error)
- func (s *Service) RemoveUsersFromGroup(ctx context.Context, req *openauth_v1.RemoveUsersFromGroupRequest) (*openauth_v1.RemoveUsersFromGroupResponse, error)
- func (s *Service) SendVerificationCode(ctx context.Context, req *openauth_v1.SendVerificationCodeRequest) (*openauth_v1.SendVerificationCodeResponse, error)
- func (s *Service) SignIn(ctx context.Context, req *openauth_v1.SignInRequest) (*openauth_v1.SignInResponse, error)
- func (s *Service) SignUp(ctx context.Context, req *openauth_v1.SignUpRequest) (*openauth_v1.SignUpResponse, error)
- func (s *Service) Stats(ctx context.Context, req *openauth_v1.StatsRequest) (*openauth_v1.StatsResponse, error)
- func (s *Service) TerminateSession(ctx context.Context, req *openauth_v1.TerminateSessionRequest) (*openauth_v1.TerminateSessionResponse, error)
- func (s *Service) UpdateConfig(ctx context.Context, req *openauth_v1.UpdateConfigRequest) (*openauth_v1.UpdateResponse, error)
- func (s *Service) UpdateConfigEntity(ctx context.Context, req *openauth_v1.UpdateConfigEntityRequest) (*openauth_v1.UpdateResponse, error)
- func (s *Service) UpdateGroup(ctx context.Context, req *openauth_v1.UpdateGroupRequest) (*openauth_v1.UpdateGroupResponse, error)
- func (s *Service) UpdatePermission(ctx context.Context, req *openauth_v1.UpdatePermissionRequest) (*openauth_v1.Permission, error)
- func (s *Service) UpdateProfile(ctx context.Context, req *openauth_v1.UpdateProfileRequest) (*openauth_v1.UpdateProfileResponse, error)
- func (s *Service) UpdateUser(ctx context.Context, req *openauth_v1.UpdateUserRequest) (*openauth_v1.UpdateUserResponse, error)
- func (s *Service) ValidateAccessToken(tokenString string) (*jwtutils.JWTClaims, error)
- func (s *Service) ValidateToken(ctx context.Context, req *openauth_v1.ValidateTokenRequest) (*openauth_v1.ValidateTokenResponse, error)
- func (s *Service) VerifyEmail(ctx context.Context, req *openauth_v1.VerifyEmailRequest) (*openauth_v1.VerificationResponse, error)
- func (s *Service) VerifyPhone(ctx context.Context, req *openauth_v1.VerifyPhoneRequest) (*openauth_v1.VerificationResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommunicationConfig ¶
type CommunicationConfig struct {
ServiceEndpoint string `yaml:"ServiceEndpoint"`
EmailVerificationSubject string `yaml:"EmailVerificationSubject"`
EmailVerificationBody string `yaml:"EmailVerificationBody"`
SMSVerificationMessage string `yaml:"SMSVerificationMessage"`
}
func (*CommunicationConfig) Default ¶
func (c *CommunicationConfig) Default()
type Config ¶
type Config struct {
JWT JWTConfig `yaml:"JWT"`
Security SecurityConfig `yaml:"Security"`
Communication CommunicationConfig `yaml:"Communication"`
}
type JWTConfig ¶
type JWTConfig struct {
SecretKey string `yaml:"SecretKey"` // JWT signing secret key
AccessTokenTTL time.Duration `yaml:"AccessTokenTTL"` // Access token expiration time
RefreshTokenTTL time.Duration `yaml:"RefreshTokenTTL"` // Refresh token expiration time
}
func (*JWTConfig) GetSecretKey ¶
type Repository ¶
type Repository interface {
Ping(ctx context.Context) error
// Permission methods
CreatePermission(ctx context.Context, permission *dao.Permission) (*dao.Permission, error)
GetPermissionByID(ctx context.Context, id int64) (*dao.Permission, error)
ListPermissions(ctx context.Context, filters *filter.PermissionFilter) ([]*dao.Permission, error)
UpdatePermission(ctx context.Context, id int64, updates map[string]interface{}) (*dao.Permission, error)
DeletePermission(ctx context.Context, id int64) error
GetPermissionByName(ctx context.Context, name string) (*dao.Permission, error)
// User methods
CreateUser(ctx context.Context, user *dao.User) (*dao.User, error)
CreateUserProfile(ctx context.Context, profile *dao.Profile) (*dao.Profile, error)
GetUserByID(ctx context.Context, id int64) (*dao.User, error)
GetUserByUUID(ctx context.Context, uuid string) (*dao.User, error)
GetUserByUsername(ctx context.Context, username string) (*dao.User, error)
GetUserByEmail(ctx context.Context, email string) (*dao.User, error)
GetUserByPhone(ctx context.Context, identifier string) (*dao.User, error)
GetUserProfile(ctx context.Context, userID int64) (*dao.Profile, error)
UpdateUser(ctx context.Context, id int64, updates map[string]interface{}) (*dao.User, error)
UpdateUserProfile(ctx context.Context, userID int64, updates map[string]interface{}) (*dao.Profile, error)
DeleteUser(ctx context.Context, id int64, softDelete bool) error
ListUsers(ctx context.Context, filters *filter.UserFilter) ([]*dao.User, error)
CheckUsernameExists(ctx context.Context, username string) (bool, error)
CheckEmailExists(ctx context.Context, email string) (bool, error)
// Profile management methods
ListUserProfiles(ctx context.Context, filters *filter.UserProfilesFilter) ([]*dao.Profile, error)
ListUserProfileUUIDs(ctx context.Context, userID int64) ([]uuid.UUID, error)
GetProfileByUUID(ctx context.Context, uuid string) (*dao.Profile, error)
UpdateProfileByUUID(ctx context.Context, uuid string, updates map[string]interface{}) (*dao.Profile, error)
CountUserProfiles(ctx context.Context, userUUID string) (int32, error)
DeleteProfileByUUID(ctx context.Context, uuid string) error
// Verification methods
CreateOTPVerification(ctx context.Context, otp *dao.OTPVerification) error
GetOTPVerification(ctx context.Context, identifier, code string) (*dao.OTPVerification, error)
UpdateVerificationStatus(ctx context.Context, userID int64, field string, verified bool) error
DeleteOTPVerification(ctx context.Context, identifier, otpType string) error
// Session management methods
CreateSession(ctx context.Context, session *dao.Session) (*dao.Session, error)
GetSessionByToken(ctx context.Context, sessionToken string) (*dao.Session, error)
GetSessionByUUID(ctx context.Context, sessionUUID string) (*dao.Session, error)
GetSessionByRefreshToken(ctx context.Context, refreshToken string) (*dao.Session, error)
UpdateSession(ctx context.Context, sessionUUID string, updates map[string]interface{}) (*dao.Session, error)
DeleteSession(ctx context.Context, sessionUUID string) error
DeleteUserSessions(ctx context.Context, userUUID string) error
ListUserSessions(ctx context.Context, filters *filter.UserSessionsFilter) ([]*dao.Session, error)
UpdateLastActivity(ctx context.Context, sessionUUID string) error
// Group methods
CreateGroup(ctx context.Context, group *dao.Group) (*dao.Group, error)
GetGroupByID(ctx context.Context, id int64) (*dao.Group, error)
GetGroupByUUID(ctx context.Context, uuid string) (*dao.Group, error)
GetGroupByName(ctx context.Context, name string) (*dao.Group, error)
ListGroups(ctx context.Context, filters *filter.GroupFilter) ([]*dao.Group, error)
UpdateGroup(ctx context.Context, id int64, updates map[string]interface{}) (*dao.Group, error)
DeleteGroup(ctx context.Context, id int64) error
CheckGroupNameExists(ctx context.Context, name string) (bool, error)
// Group membership methods
AssignUserToGroup(ctx context.Context, userID, groupID int64, assignedBy int64, expiresAt *int64) error
AssignUsersToGroup(ctx context.Context, userIDs []int64, groupID int64, assignedBy int64, expiresAt *int64) error
RemoveUserFromGroup(ctx context.Context, userID, groupID int64) error
RemoveUsersFromGroup(ctx context.Context, userIDs []int64, groupID int64) error
ListGroupUsers(ctx context.Context, filters *filter.GroupUsersFilter) ([]*dao.User, error)
ListUserGroups(ctx context.Context, filters *filter.UserGroupsFilter) ([]*dao.Group, error)
IsUserInGroup(ctx context.Context, userID, groupID int64) (bool, error)
// Group permission methods
AssignPermissionToGroup(ctx context.Context, groupID, permissionID, grantedBy int64) error
AssignPermissionsToGroup(ctx context.Context, groupID int64, permissionIDs []int64, grantedBy int64) error
RemovePermissionFromGroup(ctx context.Context, groupID, permissionID int64) error
RemovePermissionsFromGroup(ctx context.Context, groupID int64, permissionIDs []int64) error
ListGroupPermissions(ctx context.Context, groupId int64) ([]*dao.EffectivePermission, error)
IsPermissionAssignedToGroup(ctx context.Context, groupID, permissionID int64) (bool, error)
// User permission methods
AssignPermissionToUser(ctx context.Context, userID, permissionID, grantedBy int64, expiresAt *int64) error
AssignPermissionsToUser(ctx context.Context, userID int64, permissionIDs []int64, grantedBy int64, expiresAt *int64) error
RemovePermissionFromUser(ctx context.Context, userID, permissionID int64) error
RemovePermissionsFromUser(ctx context.Context, userID int64, permissionIDs []int64) error
ListUserPermissions(ctx context.Context, userId int64) ([]*dao.EffectivePermission, error)
GetUserEffectivePermissions(ctx context.Context, userId int64) ([]*dao.EffectivePermission, error)
IsPermissionAssignedToUser(ctx context.Context, userID, permissionID int64) (bool, error)
GetUserEffectivePermissionNames(ctx context.Context, userId int64) ([]string, error)
// Stats methods
GetTotalUsers(ctx context.Context) (int64, error)
GetTotalPermissions(ctx context.Context) (int64, error)
GetTotalGroups(ctx context.Context) (int64, error)
GetActiveUsers(ctx context.Context) (int64, error)
// Config Entity methods
CreateConfigEntity(ctx context.Context, entity *dao.ConfigEntity) error
GetConfigEntityByID(ctx context.Context, id int64) (*dao.ConfigEntity, error)
GetConfigEntityByName(ctx context.Context, name string) (*dao.ConfigEntity, error)
ListConfigEntities(ctx context.Context, filters *filter.ConfigEntityFilter) ([]*dao.ConfigEntity, error)
UpdateConfigEntity(ctx context.Context, id int64, updates map[string]interface{}) error
DeleteConfigEntity(ctx context.Context, id int64) error
// Config methods
CreateConfig(ctx context.Context, config *dao.Config) error
GetConfigByID(ctx context.Context, id int64) (*dao.Config, error)
GetConfigByEntityAndKey(ctx context.Context, entityID int64, key string) (*dao.Config, error)
GetConfigByEntityNameAndKey(ctx context.Context, entityName, key string) (*dao.Config, error)
ListConfigs(ctx context.Context, filters *filter.ConfigFilter) ([]*dao.Config, int64, error)
UpdateConfig(ctx context.Context, id int64, updates map[string]interface{}) error
DeleteConfig(ctx context.Context, id int64) error
GetConfigsByEntityAndKeys(ctx context.Context, entityID int64, keys []string) (map[string]*dao.Config, error)
GetConfigsByEntityNameAndKeys(ctx context.Context, entityName string, keys []string) (map[string]*dao.Config, error)
}
type SecurityConfig ¶
type SecurityConfig struct {
BcryptCost int `yaml:"BcryptCost"` // Password hashing cost
MaxLoginAttempts int `yaml:"MaxLoginAttempts"` // Maximum failed login attempts
LockoutDuration time.Duration `yaml:"LockoutDuration"` // Account lockout duration
}
func (*SecurityConfig) Default ¶
func (c *SecurityConfig) Default()
type Service ¶
type Service struct {
openauth_v1.UnimplementedOpenAuthServer
// contains filtered or unexported fields
}
func NewService ¶
func NewService(ctx context.Context, cfg *Config, repo Repository) *Service
func (*Service) AssignPermissionsToGroup ¶
func (s *Service) AssignPermissionsToGroup(ctx context.Context, req *openauth_v1.AssignPermissionsToGroupRequest) (*openauth_v1.AssignPermissionsToGroupResponse, error)
AssignPermissionsToGroup assigns multiple permissions to a group
func (*Service) AssignPermissionsToUser ¶
func (s *Service) AssignPermissionsToUser(ctx context.Context, req *openauth_v1.AssignPermissionsToUserRequest) (*openauth_v1.AssignPermissionsToUserResponse, error)
AssignPermissionsToUser assigns multiple permissions directly to a user
func (*Service) AssignUsersToGroup ¶
func (s *Service) AssignUsersToGroup(ctx context.Context, req *openauth_v1.AssignUsersToGroupRequest) (*openauth_v1.AssignUsersToGroupResponse, error)
AssignUserToGroup adds a user to a group
func (*Service) ChangePassword ¶
func (s *Service) ChangePassword(ctx context.Context, req *openauth_v1.ChangePasswordRequest) (*openauth_v1.ChangePasswordResponse, error)
ChangePassword allows users to change their password
func (*Service) CheckEmail ¶
func (s *Service) CheckEmail(ctx context.Context, req *openauth_v1.CheckEmailRequest) (*openauth_v1.CheckEmailResponse, error)
CheckEmail checks if an email address is available for registration
func (*Service) CheckUsername ¶
func (s *Service) CheckUsername(ctx context.Context, req *openauth_v1.CheckUsernameRequest) (*openauth_v1.CheckUsernameResponse, error)
CheckUsername checks if a username is available for registration
func (*Service) CreateConfig ¶
func (s *Service) CreateConfig(ctx context.Context, req *openauth_v1.CreateConfigRequest) (*openauth_v1.Config, error)
CreateConfig creates a new configuration
func (*Service) CreateConfigEntity ¶
func (s *Service) CreateConfigEntity(ctx context.Context, req *openauth_v1.CreateConfigEntityRequest) (*openauth_v1.ConfigEntity, error)
CreateConfigEntity creates a new config entity
func (*Service) CreateGroup ¶
func (s *Service) CreateGroup(ctx context.Context, req *openauth_v1.CreateGroupRequest) (*openauth_v1.CreateGroupResponse, error)
CreateGroup creates a new group in the system
func (*Service) CreatePermission ¶
func (s *Service) CreatePermission(ctx context.Context, req *openauth_v1.CreatePermissionRequest) (*openauth_v1.Permission, error)
CreatePermission creates a new permission
func (*Service) CreateProfile ¶
func (s *Service) CreateProfile(ctx context.Context, req *openauth_v1.CreateProfileRequest) (*openauth_v1.CreateProfileResponse, error)
CreateProfile creates a new profile for a user
func (*Service) DeleteConfig ¶
func (s *Service) DeleteConfig(ctx context.Context, req *openauth_v1.DeleteConfigRequest) (*openauth_v1.DeleteResponse, error)
DeleteConfig deletes a config
func (*Service) DeleteConfigEntity ¶
func (s *Service) DeleteConfigEntity(ctx context.Context, req *openauth_v1.DeleteConfigEntityRequest) (*openauth_v1.DeleteResponse, error)
DeleteConfigEntity deletes a config entity
func (*Service) DeleteGroup ¶
func (s *Service) DeleteGroup(ctx context.Context, req *openauth_v1.DeleteGroupRequest) (*openauth_v1.DeleteGroupResponse, error)
DeleteGroup removes a group from the system
func (*Service) DeletePermission ¶
func (s *Service) DeletePermission(ctx context.Context, req *openauth_v1.DeletePermissionRequest) (*openauth_v1.DeletePermissionResponse, error)
DeletePermission deletes a permission
func (*Service) DeleteProfile ¶
func (s *Service) DeleteProfile(ctx context.Context, req *openauth_v1.DeleteProfileRequest) (*openauth_v1.DeleteProfileResponse, error)
DeleteProfile removes a specific profile
func (*Service) DeleteUser ¶
func (s *Service) DeleteUser(ctx context.Context, req *openauth_v1.DeleteUserRequest) (*openauth_v1.DeleteUserResponse, error)
DeleteUser removes or deactivates a user account
func (*Service) GetConfig ¶
func (s *Service) GetConfig(ctx context.Context, req *openauth_v1.GetConfigRequest) (*openauth_v1.Config, error)
GetConfig retrieves a config by ID
func (*Service) GetConfigEntity ¶
func (s *Service) GetConfigEntity(ctx context.Context, req *openauth_v1.GetConfigEntityRequest) (*openauth_v1.ConfigEntity, error)
GetConfigEntity retrieves a config entity by ID
func (*Service) GetConfigsByKeys ¶
func (s *Service) GetConfigsByKeys(ctx context.Context, req *openauth_v1.GetConfigsByKeysRequest) (*openauth_v1.GetConfigsByKeysResponse, error)
GetConfigsByKeys retrieves multiple configs by keys within an entity
func (*Service) GetGroup ¶
func (s *Service) GetGroup(ctx context.Context, req *openauth_v1.GetGroupRequest) (*openauth_v1.GetGroupResponse, error)
GetGroup retrieves a group by ID, UUID, or name
func (*Service) GetPermission ¶
func (s *Service) GetPermission(ctx context.Context, req *openauth_v1.GetPermissionRequest) (*openauth_v1.Permission, error)
GetPermission retrieves a permission by ID
func (*Service) GetUser ¶
func (s *Service) GetUser(ctx context.Context, req *openauth_v1.GetUserRequest) (*openauth_v1.GetUserResponse, error)
GetUser retrieves user information by ID, UUID, username, or email
func (*Service) GetUserEffectivePermissions ¶
func (s *Service) GetUserEffectivePermissions(ctx context.Context, req *openauth_v1.GetUserEffectivePermissionsRequest) (*openauth_v1.GetUserEffectivePermissionsResponse, error)
GetUserEffectivePermissions retrieves all effective permissions for a user
func (*Service) ListConfigEntities ¶
func (s *Service) ListConfigEntities(ctx context.Context, req *openauth_v1.ListConfigEntitiesRequest) (*openauth_v1.ListConfigEntitiesResponse, error)
ListConfigEntities lists config entities with filtering and pagination
func (*Service) ListConfigs ¶
func (s *Service) ListConfigs(ctx context.Context, req *openauth_v1.ListConfigsRequest) (*openauth_v1.ListConfigsResponse, error)
ListConfigs lists configs with filtering and pagination
func (*Service) ListGroupPermissions ¶
func (s *Service) ListGroupPermissions(ctx context.Context, req *openauth_v1.ListGroupPermissionsRequest) (*openauth_v1.ListGroupPermissionsResponse, error)
ListGroupPermissions retrieves permissions assigned to a group
func (*Service) ListGroupUsers ¶
func (s *Service) ListGroupUsers(ctx context.Context, req *openauth_v1.ListGroupUsersRequest) (*openauth_v1.ListGroupUsersResponse, error)
ListGroupUsers retrieves all users in a specific group
func (*Service) ListGroups ¶
func (s *Service) ListGroups(ctx context.Context, req *openauth_v1.ListGroupsRequest) (*openauth_v1.ListGroupsResponse, error)
ListGroups retrieves groups with filtering and pagination
func (*Service) ListPermissions ¶
func (s *Service) ListPermissions(ctx context.Context, req *openauth_v1.ListPermissionsRequest) (*openauth_v1.ListPermissionsResponse, error)
ListPermissions retrieves permissions with filtering and pagination
func (*Service) ListUserGroups ¶
func (s *Service) ListUserGroups(ctx context.Context, req *openauth_v1.ListUserGroupsRequest) (*openauth_v1.ListUserGroupsResponse, error)
ListUserGroups retrieves all groups for a specific user
func (*Service) ListUserPermissions ¶
func (s *Service) ListUserPermissions(ctx context.Context, req *openauth_v1.ListUserPermissionsRequest) (*openauth_v1.ListUserPermissionsResponse, error)
ListUserPermissions retrieves permissions directly assigned to a user
func (*Service) ListUserProfiles ¶
func (s *Service) ListUserProfiles(ctx context.Context, req *openauth_v1.ListUserProfilesRequest) (*openauth_v1.ListUserProfilesResponse, error)
ListUserProfiles retrieves all profiles for a user
func (*Service) ListUserSessions ¶
func (s *Service) ListUserSessions(ctx context.Context, req *openauth_v1.ListUserSessionsRequest) (*openauth_v1.ListUserSessionsResponse, error)
ListUserSessions retrieves active sessions for a user
func (*Service) ListUsers ¶
func (s *Service) ListUsers(ctx context.Context, req *openauth_v1.ListUsersRequest) (*openauth_v1.ListUsersResponse, error)
ListUsers retrieves users with filtering, sorting, and pagination
func (*Service) Logout ¶
func (s *Service) Logout(ctx context.Context, req *openauth_v1.LogoutRequest) (*openauth_v1.LogoutResponse, error)
Logout terminates user session(s)
func (*Service) Ping ¶
func (s *Service) Ping(ctx context.Context, req *openauth_v1.PingRequest) (*openauth_v1.PingResponse, error)
func (*Service) RefreshToken ¶
func (s *Service) RefreshToken(ctx context.Context, req *openauth_v1.RefreshTokenRequest) (*openauth_v1.RefreshTokenResponse, error)
RefreshToken generates new access token using refresh token
func (*Service) RemovePermissionsFromGroup ¶
func (s *Service) RemovePermissionsFromGroup(ctx context.Context, req *openauth_v1.RemovePermissionsFromGroupRequest) (*openauth_v1.RemovePermissionsFromGroupResponse, error)
RemovePermissionsFromGroup removes multiple permissions from a group
func (*Service) RemovePermissionsFromUser ¶
func (s *Service) RemovePermissionsFromUser(ctx context.Context, req *openauth_v1.RemovePermissionsFromUserRequest) (*openauth_v1.RemovePermissionsFromUserResponse, error)
RemovePermissionsFromUser removes multiple permissions directly assigned to a user
func (*Service) RemoveUsersFromGroup ¶
func (s *Service) RemoveUsersFromGroup(ctx context.Context, req *openauth_v1.RemoveUsersFromGroupRequest) (*openauth_v1.RemoveUsersFromGroupResponse, error)
RemoveUsersFromGroup removes multiple users from a group
func (*Service) SendVerificationCode ¶
func (s *Service) SendVerificationCode(ctx context.Context, req *openauth_v1.SendVerificationCodeRequest) (*openauth_v1.SendVerificationCodeResponse, error)
SendVerificationCode implements openauth_v1.OpenAuthServer.
func (*Service) SignIn ¶
func (s *Service) SignIn(ctx context.Context, req *openauth_v1.SignInRequest) (*openauth_v1.SignInResponse, error)
SignIn authenticates a user and creates a new session
func (*Service) SignUp ¶
func (s *Service) SignUp(ctx context.Context, req *openauth_v1.SignUpRequest) (*openauth_v1.SignUpResponse, error)
SignUp creates a new user account in the system
func (*Service) Stats ¶
func (s *Service) Stats(ctx context.Context, req *openauth_v1.StatsRequest) (*openauth_v1.StatsResponse, error)
Stats returns system statistics
func (*Service) TerminateSession ¶
func (s *Service) TerminateSession(ctx context.Context, req *openauth_v1.TerminateSessionRequest) (*openauth_v1.TerminateSessionResponse, error)
TerminateSession ends a specific user session
func (*Service) UpdateConfig ¶
func (s *Service) UpdateConfig(ctx context.Context, req *openauth_v1.UpdateConfigRequest) (*openauth_v1.UpdateResponse, error)
UpdateConfig updates an existing config
func (*Service) UpdateConfigEntity ¶
func (s *Service) UpdateConfigEntity(ctx context.Context, req *openauth_v1.UpdateConfigEntityRequest) (*openauth_v1.UpdateResponse, error)
UpdateConfigEntity updates an existing config entity
func (*Service) UpdateGroup ¶
func (s *Service) UpdateGroup(ctx context.Context, req *openauth_v1.UpdateGroupRequest) (*openauth_v1.UpdateGroupResponse, error)
UpdateGroup modifies an existing group
func (*Service) UpdatePermission ¶
func (s *Service) UpdatePermission(ctx context.Context, req *openauth_v1.UpdatePermissionRequest) (*openauth_v1.Permission, error)
UpdatePermission updates an existing permission
func (*Service) UpdateProfile ¶
func (s *Service) UpdateProfile(ctx context.Context, req *openauth_v1.UpdateProfileRequest) (*openauth_v1.UpdateProfileResponse, error)
UpdateProfile modifies an existing profile
func (*Service) UpdateUser ¶
func (s *Service) UpdateUser(ctx context.Context, req *openauth_v1.UpdateUserRequest) (*openauth_v1.UpdateUserResponse, error)
UpdateUser modifies user account and profile information
func (*Service) ValidateAccessToken ¶
ValidateAccessToken parses and validates a JWT access token
func (*Service) ValidateToken ¶
func (s *Service) ValidateToken(ctx context.Context, req *openauth_v1.ValidateTokenRequest) (*openauth_v1.ValidateTokenResponse, error)
ValidateToken checks if an access token is valid
func (*Service) VerifyEmail ¶
func (s *Service) VerifyEmail(ctx context.Context, req *openauth_v1.VerifyEmailRequest) (*openauth_v1.VerificationResponse, error)
VerifyEmail verifies a user's email address using a verification code
func (*Service) VerifyPhone ¶
func (s *Service) VerifyPhone(ctx context.Context, req *openauth_v1.VerifyPhoneRequest) (*openauth_v1.VerificationResponse, error)
VerifyPhone verifies a user's phone number using a verification code