Documentation ¶
Index ¶
- Variables
- func Query[T any](txManager TransactionManager, queryFn func() (T, error)) (T, error)
- type ClientRepo
- type LoginDetailUsecase
- func (s *LoginDetailUsecase) Activate(id string) error
- func (s *LoginDetailUsecase) CheckPermission() error
- func (s *LoginDetailUsecase) FindClient(clientId string) (*Client, error)
- func (s *LoginDetailUsecase) GenerateAccessToken(refreshToken *RefreshToken) (string, error)
- func (s *LoginDetailUsecase) GrantAccess(authentication *Authentication) (*GrantAccess, error)
- func (s *LoginDetailUsecase) Login(grantRequest *GrantRequest) (*Authentication, error)
- func (s *LoginDetailUsecase) Logout(refreshToken string) error
- func (s *LoginDetailUsecase) Register(registerRequest *GrantRequest) (*Authentication, error)
- type RefreshTokenRepo
- type TransactionManager
- type TrustedTpInfoFetcher
- type UserInfo
- type UserInfoRepo
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotSupportOauthProvider = util.NewGroupError(ErrLoginDetailErrorGroup, errors.New(401, "not supported openid provider", "not supported openid provider")) ErrNotSupportGrantType = util.NewGroupError(ErrLoginDetailErrorGroup, errors.New(401, "not supported grant type", "not supported grant type")) ErrInvalidTpAccessToken = util.NewGroupError(ErrLoginDetailErrorGroup, errors.New(401, "invalid trusted third party access token", "invalid trusted third party access token")) ErrInvalidCredential = util.NewGroupError(ErrLoginDetailErrorGroup, errors.New(401, "invalid credential", "invalid credential")) ErrCredentialAlreadyExist = util.NewGroupError(ErrLoginDetailErrorGroup, errors.New(409, "crendential already exist", "crendential already exist")) ErrInvalidClientId = util.NewGroupError(ErrLoginDetailErrorGroup, errors.New(401, "invalid client id", "invalid client id")) )
View Source
var ErrLoginDetailErrorGroup = stderrors.New("login detail error group")
Login detail error group
View Source
var ErrResourceAlreadyExists = stderrors.New("resource already exists")
Standard errors
View Source
var ErrResourceNotFound = stderrors.New("resource not found")
View Source
var ErrUserInfoClientGroup = stderrors.New("user info client group")
User info client error group
View Source
var ProviderSet = wire.NewSet(NewLoginDetailUseCase)
ProviderSet is biz providers.
Functions ¶
Types ¶
type ClientRepo ¶
type LoginDetailUsecase ¶
type LoginDetailUsecase struct { TransactionManager // contains filtered or unexported fields }
func NewLoginDetailUseCase ¶
func NewLoginDetailUseCase(userInfoClient UserInfoClient, repo LoginDetailRepo, clientRepo ClientRepo, refreshTokenRepo RefreshTokenRepo, logger log.Logger, transactionManager TransactionManager) *LoginDetailUsecase
func (*LoginDetailUsecase) Activate ¶
func (s *LoginDetailUsecase) Activate(id string) error
func (*LoginDetailUsecase) CheckPermission ¶
func (s *LoginDetailUsecase) CheckPermission() error
TODO: Implement this method
func (*LoginDetailUsecase) FindClient ¶
func (s *LoginDetailUsecase) FindClient(clientId string) (*Client, error)
func (*LoginDetailUsecase) GenerateAccessToken ¶
func (s *LoginDetailUsecase) GenerateAccessToken(refreshToken *RefreshToken) (string, error)
func (*LoginDetailUsecase) GrantAccess ¶
func (s *LoginDetailUsecase) GrantAccess(authentication *Authentication) (*GrantAccess, error)
func (*LoginDetailUsecase) Login ¶
func (s *LoginDetailUsecase) Login(grantRequest *GrantRequest) (*Authentication, error)
func (*LoginDetailUsecase) Logout ¶
func (s *LoginDetailUsecase) Logout(refreshToken string) error
func (*LoginDetailUsecase) Register ¶
func (s *LoginDetailUsecase) Register(registerRequest *GrantRequest) (*Authentication, error)
type RefreshTokenRepo ¶
type TransactionManager ¶
type TrustedTpInfoFetcher ¶
Click to show internal directories.
Click to hide internal directories.