Documentation
¶
Index ¶
- type HttpWrapper
- func (h *HttpWrapper) Authorize(authorizationEndpoint string, ...)
- func (h *HttpWrapper) AuthorizeCallback(authorizeCallbackEndpoint string, ...)
- func (h *HttpWrapper) DiscoveryConfig(discoveryEndpoint string, ...)
- func (h *HttpWrapper) DiscoveryJWKs(jwksEndpoint string, handler func() (*jose.JSONWebKeySet, error))
- func (h *HttpWrapper) EndSession(endSessionEndpoint string, ...)
- func (h *HttpWrapper) Introspect(introspectionEndpoint string, ...)
- func (h *HttpWrapper) ListenAndServe() error
- func (h *HttpWrapper) RevokeToken(revocationEndpoint string, ...)
- func (h *HttpWrapper) SetLogger(logger log.Logger)
- func (h *HttpWrapper) TokenExchange(tokenExchangeEndpoint string, ...)
- func (h *HttpWrapper) Userinfo(userinfoEndpoint string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpWrapper ¶
type HttpWrapper struct {
// contains filtered or unexported fields
}
func NewHttpHandler ¶
func NewHttpHandler(addr string) *HttpWrapper
func (*HttpWrapper) Authorize ¶
func (h *HttpWrapper) Authorize(authorizationEndpoint string, handler func(ctx context.Context, req *x_oidc.AuthRequestReq) (string, error))
func (*HttpWrapper) AuthorizeCallback ¶
func (h *HttpWrapper) AuthorizeCallback(authorizeCallbackEndpoint string, handler func(ctx context.Context, req *x_oidc.AuthorizeCallbackReq) (callbackUrl string, err error))
func (*HttpWrapper) DiscoveryConfig ¶
func (h *HttpWrapper) DiscoveryConfig(discoveryEndpoint string, handler func(req *x_oidc.DiscoveryConfigReq) *model.DiscoveryConfiguration)
func (*HttpWrapper) DiscoveryJWKs ¶
func (h *HttpWrapper) DiscoveryJWKs(jwksEndpoint string, handler func() (*jose.JSONWebKeySet, error))
func (*HttpWrapper) EndSession ¶
func (h *HttpWrapper) EndSession(endSessionEndpoint string, handler func(ctx context.Context, req *x_oidc.EndSessionReq) (string, error))
func (*HttpWrapper) Introspect ¶
func (h *HttpWrapper) Introspect(introspectionEndpoint string, handler func(ctx context.Context, req *x_oidc.IntrospectionReq, r *http.Request) (*model.IntrospectionModel, error))
func (*HttpWrapper) ListenAndServe ¶
func (h *HttpWrapper) ListenAndServe() error
func (*HttpWrapper) RevokeToken ¶
func (h *HttpWrapper) RevokeToken(revocationEndpoint string, handler func(ctx context.Context, req *x_oidc.RevokeTokenReq, r *http.Request) error)
func (*HttpWrapper) SetLogger ¶
func (h *HttpWrapper) SetLogger(logger log.Logger)
func (*HttpWrapper) TokenExchange ¶
func (h *HttpWrapper) TokenExchange(tokenExchangeEndpoint string, handler func(ctx context.Context, req *x_oidc.TokenExchangeReq, r *http.Request) (interface{}, error))
Click to show internal directories.
Click to hide internal directories.