Documentation ¶
Index ¶
- Variables
- type Auth
- func (s *Auth) Activate(userId string) error
- func (s *Auth) CheckPermission() error
- func (s *Auth) GrantAccess(authentication *dto.Authentication) (*dto.GrantAccess, error)
- func (s *Auth) Login(grantRequest *dto.GrantRequest) (*dto.Authentication, error)
- func (s *Auth) Logout(refreshToken string) error
- func (s *Auth) Register(registerRequest *dto.GrantRequest) (*dto.Authentication, error)
- type Config
- func (s *Config) Get(key string) (*string, error)
- func (s *Config) GetInNs(namespace *string, key string) (*string, error)
- func (s *Config) GetInNsOrDefault(namespace *string, key string, defaultValue string) string
- func (s *Config) GetOrDefault(key string, defaultValue string) string
- func (s *Config) MustHave(key string) (string, error)
- func (s *Config) MustHaveInNs(namespace string, key string) (string, error)
- type Mail
- type Redis
- type TrustedTpInfoFetcher
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotSupportOauthProvider = response.NewResponseError(401, "not supported openid provider") ErrNotSupportGrantType = response.NewResponseError(401, "not supported grant type") ErrInvalidTpAccessToken = response.NewResponseError(401, "invalid trusted third party access token") ErrInvalidCredential = response.NewResponseError(401, "invalid credential") ErrCredentialAlreadyExist = response.NewResponseError(409, "crendential already exist") ErrInvalidClientId = response.NewResponseError(401, "invalid client id") )
View Source
var ErrMissingValue = errors.New("missing value")
View Source
var ProviderSet = wire.NewSet(NewRedisClient, NewMailService, NewConfigService, NewAuthService)
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func (*Auth) CheckPermission ¶
func (*Auth) GrantAccess ¶
func (s *Auth) GrantAccess(authentication *dto.Authentication) (*dto.GrantAccess, error)
func (*Auth) Login ¶
func (s *Auth) Login(grantRequest *dto.GrantRequest) (*dto.Authentication, error)
func (*Auth) Register ¶
func (s *Auth) Register(registerRequest *dto.GrantRequest) (*dto.Authentication, error)
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func NewConfigService ¶
func (*Config) GetInNsOrDefault ¶
type Mail ¶
type Mail struct { Host string Port string FromAddr string // contains filtered or unexported fields }
func NewMailService ¶
Click to show internal directories.
Click to hide internal directories.