Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRBAC ¶
func NewRBAC(txManager, nonTxManager service.TransactionManager) *rbac
Types ¶
type AppUserClaims ¶
type Authentication ¶
type Authentication struct {
// contains filtered or unexported fields
}
func NewAuthentication ¶
func NewAuthentication(transactionManager service.TransactionManager, authTokenManager service.AuthTokenManager, systemOwnerByOrganizationName SystemOwnerByOrganizationName) *Authentication
func (*Authentication) GetUserInfo ¶
func (u *Authentication) GetUserInfo(ctx context.Context, bearerToken string) (*rsuserdomain.AppUserModel, error)
func (*Authentication) RefreshToken ¶
type GoogleAuthClient ¶
type GoogleAuthResponse ¶
type GoogleUserInfo ¶
type GoogleUserUsecase ¶
type GoogleUserUsecase struct {
// contains filtered or unexported fields
}
func NewGoogleUser ¶
func NewGoogleUser(txManager, nonTxManager service.TransactionManager, authTokenManager service.AuthTokenManager, googleAuthClient GoogleAuthClient) *GoogleUserUsecase
func (*GoogleUserUsecase) Authorize ¶
func (u *GoogleUserUsecase) Authorize(ctx context.Context, state, code, organizationName string) (*domain.AuthTokenSet, error)
func (*GoogleUserUsecase) GenerateState ¶
func (u *GoogleUserUsecase) GenerateState(ctx context.Context) (string, error)
type PasswordUsecae ¶
type PasswordUsecae struct {
// contains filtered or unexported fields
}
func NewPassword ¶
func NewPassword(txManager, nonTxManager service.TransactionManager, authTokenManager service.AuthTokenManager) *PasswordUsecae
func (*PasswordUsecae) Authenticate ¶
func (u *PasswordUsecae) Authenticate(ctx context.Context, loginID, password, organizationName string) (*domain.AuthTokenSet, error)
type SystemOwnerByOrganizationName ¶
type SystemOwnerByOrganizationName interface {
Get(ctx context.Context, rf service.RepositoryFactory, organizationName string) (*rsuserservice.SystemOwner, error)
}
Click to show internal directories.
Click to hide internal directories.