Documentation ¶
Index ¶
Constants ¶
View Source
const TokenURLFormat = "%s?token=%s"
Variables ¶
This section is empty.
Functions ¶
func NewHandlerBuilder ¶
func NewHandlerBuilder(functionalMiddlewares FunctionalMiddlewares, globalMiddlewares []mux.MiddlewareFunc) *handlerBuilder
func NewRevocationHandler ¶
func NewRevocationHandler(ctx context.Context, revocationListRepository revocation.RevocationListRepository) *revocationHandler
Types ¶
type Config ¶
type Config struct { TokenManager tokens.Creator CSRInfoURL string ContextExtractor clientcontext.ConnectorClientExtractor RevokedCertsRepo revocation.RevocationListRepository RevokedRuntimeCertsRepo revocation.RevocationListRepository }
type FunctionalMiddlewares ¶
type FunctionalMiddlewares struct { ApplicationCtxMiddleware mux.MiddlewareFunc RuntimeCtxMiddleware mux.MiddlewareFunc }
type TokenHandler ¶
type TokenHandler interface {
CreateToken(w http.ResponseWriter, r *http.Request)
}
func NewTokenHandler ¶
func NewTokenHandler(tokenManager tokens.Creator, csrInfoURL string, connectorClientExtractor clientcontext.ConnectorClientExtractor) TokenHandler
Click to show internal directories.
Click to hide internal directories.