Documentation
¶
Index ¶
- Variables
- type AuthHandler
- type IdentityHandler
- func (handler *IdentityHandler) Authenticate(ctx context.Context, req *identity.AuthenticateRequest) (*identity.AuthenticateResponse, error)
- func (handler *IdentityHandler) CreateUser(ctx context.Context, req *identity.CreateUserRequest) (*identity.CreateUserResponse, error)
- func (handler *IdentityHandler) GetUser(ctx context.Context, req *identity.GetUserRequest) (*identity.GetUserResponse, error)
- func (handler *IdentityHandler) Login(ctx context.Context, req *identity.LoginRequest) (*identity.LoginResponse, error)
- func (handler *IdentityHandler) UpdateUserPassword(ctx context.Context, req *identity.UpdateUserPasswordRequest) (*identity.UpdateUserPasswordResponse, error)
- func (handler *IdentityHandler) UpdateUserStatus(ctx context.Context, req *identity.UpdateUserStatusRequest) (*identity.UpdateUserStatusResponse, error)
- type ServiceProviderHandler
- func (handler *ServiceProviderHandler) CreateServiceProvider(ctx context.Context, req *sp.CreateServiceProviderRequest) (*sp.CreateServiceProviderResponse, error)
- func (handler *ServiceProviderHandler) GetServiceProvider(ctx context.Context, req *sp.GetServiceProviderRequest) (*sp.GetServiceProviderResponse, error)
- func (handler *ServiceProviderHandler) ListServiceProvider(ctx context.Context, req *sp.ListServiceProviderRequest) (*sp.ListServiceProviderResponse, error)
- func (handler *ServiceProviderHandler) ValidateServiceProvider(ctx context.Context, req *sp.ValidateServiceProviderRequest) (*sp.ValidateServiceProviderResponse, error)
- type TokenHandler
- func (handler *TokenHandler) Issue(ctx context.Context, req *token.IssueRequest) (*token.IssueResponse, error)
- func (handler *TokenHandler) IssueSSOToken(ctx context.Context, req *token.IssueSSOTokenRequest) (*token.IssueSSOTokenResponse, error)
- func (handler *TokenHandler) Revoke(ctx context.Context, req *token.RevokeRequest) (*token.RevokeResponse, error)
- func (handler *TokenHandler) Validate(ctx context.Context, req *token.ValidateRequest) (*token.ValidateResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewIdentityHandler, NewTokenHandler, NewServiceProviderHandler, NewAuthHandler, )
Functions ¶
This section is empty.
Types ¶
type AuthHandler ¶
type AuthHandler struct {
auth.UnimplementedAuthServiceServer
// contains filtered or unexported fields
}
func NewAuthHandler ¶
func NewAuthHandler(authApp application.AuthApplication) *AuthHandler
func (*AuthHandler) ExchangeToken ¶
func (handler *AuthHandler) ExchangeToken(ctx context.Context, req *auth.ExchangeTokenRequest) (*auth.ExchangeTokenResponse, error)
func (*AuthHandler) GenerateAuthorizationCode ¶
func (handler *AuthHandler) GenerateAuthorizationCode(ctx context.Context, req *auth.GenerateAuthorizationCodeRequest) (*auth.GenerateAuthorizationCodeResponse, error)
type IdentityHandler ¶
type IdentityHandler struct {
identity.UnimplementedUserServiceServer
identity.UnimplementedRoleServiceServer
// contains filtered or unexported fields
}
func NewIdentityHandler ¶
func NewIdentityHandler(identityApp application.IdentityApplication) *IdentityHandler
func (*IdentityHandler) Authenticate ¶
func (handler *IdentityHandler) Authenticate(ctx context.Context, req *identity.AuthenticateRequest) (*identity.AuthenticateResponse, error)
func (*IdentityHandler) CreateUser ¶
func (handler *IdentityHandler) CreateUser(ctx context.Context, req *identity.CreateUserRequest) (*identity.CreateUserResponse, error)
func (*IdentityHandler) GetUser ¶
func (handler *IdentityHandler) GetUser(ctx context.Context, req *identity.GetUserRequest) (*identity.GetUserResponse, error)
func (*IdentityHandler) Login ¶
func (handler *IdentityHandler) Login(ctx context.Context, req *identity.LoginRequest) (*identity.LoginResponse, error)
func (*IdentityHandler) UpdateUserPassword ¶
func (handler *IdentityHandler) UpdateUserPassword(ctx context.Context, req *identity.UpdateUserPasswordRequest) (*identity.UpdateUserPasswordResponse, error)
func (*IdentityHandler) UpdateUserStatus ¶
func (handler *IdentityHandler) UpdateUserStatus(ctx context.Context, req *identity.UpdateUserStatusRequest) (*identity.UpdateUserStatusResponse, error)
type ServiceProviderHandler ¶
type ServiceProviderHandler struct {
sp.UnimplementedServiceProviderServiceServer
// contains filtered or unexported fields
}
func NewServiceProviderHandler ¶
func NewServiceProviderHandler(spApp application.ServiceProviderApplication) *ServiceProviderHandler
func (*ServiceProviderHandler) CreateServiceProvider ¶
func (handler *ServiceProviderHandler) CreateServiceProvider(ctx context.Context, req *sp.CreateServiceProviderRequest) (*sp.CreateServiceProviderResponse, error)
func (*ServiceProviderHandler) GetServiceProvider ¶
func (handler *ServiceProviderHandler) GetServiceProvider(ctx context.Context, req *sp.GetServiceProviderRequest) (*sp.GetServiceProviderResponse, error)
func (*ServiceProviderHandler) ListServiceProvider ¶
func (handler *ServiceProviderHandler) ListServiceProvider(ctx context.Context, req *sp.ListServiceProviderRequest) (*sp.ListServiceProviderResponse, error)
func (*ServiceProviderHandler) ValidateServiceProvider ¶
func (handler *ServiceProviderHandler) ValidateServiceProvider(ctx context.Context, req *sp.ValidateServiceProviderRequest) (*sp.ValidateServiceProviderResponse, error)
type TokenHandler ¶
type TokenHandler struct {
token.UnimplementedTokenServiceServer
// contains filtered or unexported fields
}
func NewTokenHandler ¶
func NewTokenHandler(tokenApp application.TokenApplication) *TokenHandler
func (*TokenHandler) Issue ¶
func (handler *TokenHandler) Issue(ctx context.Context, req *token.IssueRequest) (*token.IssueResponse, error)
func (*TokenHandler) IssueSSOToken ¶
func (handler *TokenHandler) IssueSSOToken(ctx context.Context, req *token.IssueSSOTokenRequest) (*token.IssueSSOTokenResponse, error)
func (*TokenHandler) Revoke ¶
func (handler *TokenHandler) Revoke(ctx context.Context, req *token.RevokeRequest) (*token.RevokeResponse, error)
func (*TokenHandler) Validate ¶
func (handler *TokenHandler) Validate(ctx context.Context, req *token.ValidateRequest) (*token.ValidateResponse, error)
Click to show internal directories.
Click to hide internal directories.