Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewIdentityApplication, NewTokenApplication, NewServiceProviderApplication, NewAuthApplication, )
Functions ¶
This section is empty.
Types ¶
type AuthApplication ¶
type AuthApplication interface {
GenerateAuthorizationCode(ctx context.Context, req *auth.GenerateAuthorizationCodeRequest) (*auth.GenerateAuthorizationCodeResponse, error)
ExchangeToken(ctx context.Context, req *auth.ExchangeTokenRequest) (*auth.ExchangeTokenResponse, error)
}
func NewAuthApplication ¶
func NewAuthApplication(authBiz biz.AuthBiz) AuthApplication
type IdentityApplication ¶
type IdentityApplication interface {
Login(context.Context, *identity.LoginRequest) (*identity.LoginResponse, error)
Authenticate(context.Context, *identity.AuthenticateRequest) (*identity.AuthenticateResponse, error)
CreateUser(context.Context, *identity.CreateUserRequest) (*identity.CreateUserResponse, error)
GetUser(context.Context, *identity.GetUserRequest) (*identity.GetUserResponse, error)
UpdateUserStatus(context.Context, *identity.UpdateUserStatusRequest) (*identity.UpdateUserStatusResponse, error)
UpdateUserPassword(context.Context, *identity.UpdateUserPasswordRequest) (*identity.UpdateUserPasswordResponse, error)
}
func NewIdentityApplication ¶
func NewIdentityApplication(userBiz biz.UserBiz, roleBiz biz.RoleBiz) IdentityApplication
type ServiceProviderApplication ¶
type ServiceProviderApplication interface {
CreateServiceProvider(ctx context.Context, req *sp.CreateServiceProviderRequest) (*sp.CreateServiceProviderResponse, error)
GetServiceProvider(ctx context.Context, req *sp.GetServiceProviderRequest) (*sp.GetServiceProviderResponse, error)
ListServiceProvider(ctx context.Context, req *sp.ListServiceProviderRequest) (*sp.ListServiceProviderResponse, error)
ValidateServiceProvider(ctx context.Context, req *sp.ValidateServiceProviderRequest) (*sp.ValidateServiceProviderResponse, error)
}
func NewServiceProviderApplication ¶
func NewServiceProviderApplication(spBiz biz.ServiceProviderBiz) ServiceProviderApplication
type TokenApplication ¶
type TokenApplication interface {
IssueSSOToken(context.Context, *token.IssueSSOTokenRequest) (*token.IssueSSOTokenResponse, error)
Issue(context.Context, *token.IssueRequest) (*token.IssueResponse, error)
Validate(context.Context, *token.ValidateRequest) (*token.ValidateResponse, error)
Revoke(context.Context, *token.RevokeRequest) (*token.RevokeResponse, error)
}
func NewTokenApplication ¶
func NewTokenApplication(tokenBiz biz.TokenBiz) TokenApplication
Click to show internal directories.
Click to hide internal directories.