Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearExpiredTokens ¶
func JSONError ¶
func JSONError(w http.ResponseWriter, err interface{}, code int)
Types ¶
type BldrClient ¶
BldrClient holds the config for the bldr oauth2 client.
type ErrorResponse ¶
type IdTokenValidator ¶
type IdTokenValidator struct {
// contains filtered or unexported fields
}
func (*IdTokenValidator) ValidateIdToken ¶
func (s *IdTokenValidator) ValidateIdToken(ctx context.Context, req *id_token.ValidateIdTokenRequest) (*id_token.ValidateIdTokenResponse, error)
type RefreshToken ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server holds the server state
func New ¶
func New( l logger.Logger, migrationConfig *migration.Config, oidcCfg oidc.Config, bldrClient *BldrClient, signInURL *url.URL, serviceCerts *certs.ServiceCerts, persistent bool) (*Server, error)
New returns a new instance of the server
func NewInMemory ¶
func NewInMemory( l logger.Logger, remainingDuration time.Duration, oidcCfg oidc.Config, signInURL *url.URL, bldrClient *BldrClient, serviceCerts *certs.ServiceCerts, persistent bool) (*Server, error)
NewInMemory instantiates a memory-backed instance of the server, to be used for testing.
func (*Server) ListenAndServe ¶
ListenAndServe starts a listener, and serves requests using Server's embedded http.ServeMux. Only ever returns with non-nil error.
func (*Server) StartGRPCServer ¶
func (*Server) StartSignalHandler ¶
Click to show internal directories.
Click to hide internal directories.