Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidSTS = errors.New("invalid sts") ErrNotImplemented = errors.New("not implemented") ErrAlreadyExists = errors.New("already exists") ErrInsufficientPermissions = errors.New("insufficient permissions") ErrUnexpectedStatusCode = errors.New("unexpected status code") ErrInvalidRequest = errors.New("invalid request") )
Functions ¶
This section is empty.
Types ¶
type APIService ¶
type APIService struct {
// contains filtered or unexported fields
}
func NewAPIService ¶
func NewAPIServiceWithClients ¶
func NewAPIServiceWithClients(apiClient apiclient.ClientWithResponsesInterface, logger logging.Logger, validateIDTokenClaims map[string]string) (*APIService, error)
func (*APIService) ValidateSTS ¶
func (s *APIService) ValidateSTS(ctx context.Context, code, redirectURI, state string) (*STSResponseData, error)
ValidateSTS calls the external authentication service to validate the STS parameters validates the required claims and returns the external user id and expiration time
type DummyService ¶
type DummyService struct{}
func NewDummyService ¶
func NewDummyService() *DummyService
func (DummyService) ValidateSTS ¶
func (d DummyService) ValidateSTS(ctx context.Context, code, redirectURI, state string) (*STSResponseData, error)
type STSResponseData ¶
Click to show internal directories.
Click to hide internal directories.