Documentation
¶
Index ¶
Constants ¶
View Source
const NOT_FOUND_ERROR_DESC = "The user_code provided is either invalid, expired or already used."
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func NewAPI ¶
func NewAPI(service ServiceInterface, tracer tracing.TracingInterface, logger logging.LoggerInterface) *API
func (*API) RegisterEndpoints ¶
type HydraClientInterface ¶
type KratosClientInterface ¶
type KratosClientInterface interface {
FrontendApi() kClient.FrontendAPI
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(hydra HydraClientInterface, tracer tracing.TracingInterface, monitor monitoring.MonitorInterface, logger logging.LoggerInterface) *Service
func (*Service) AcceptUserCode ¶
func (s *Service) AcceptUserCode(ctx context.Context, deviceChallenge string, req *hydra.AcceptDeviceUserCodeRequest) (*hClient.OAuth2RedirectTo, error)
func (*Service) ParseUserCodeBody ¶
type ServiceInterface ¶
type ServiceInterface interface {
AcceptUserCode(context.Context, string, *hydra.AcceptDeviceUserCodeRequest) (*hClient.OAuth2RedirectTo, error)
ParseUserCodeBody(*http.Request) (*hydra.AcceptDeviceUserCodeRequest, error)
}
Click to show internal directories.
Click to hide internal directories.