Documentation ¶
Overview ¶
Package oidc4vp provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.11.0 DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHandlers ¶
func RegisterHandlers(router EchoRouter, si ServerInterface)
RegisterHandlers adds each server route to the EchoRouter.
func RegisterHandlersWithBaseURL ¶
func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.
Types ¶
type Config ¶
type Config struct { HTTPClient HTTPClient ExternalHostURL string Tracer trace.Tracer }
Config holds configuration options for Controller.
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller for OIDC credential issuance API.
func NewController ¶
func NewController(config *Config) *Controller
NewController creates a new Controller instance.
func (*Controller) PresentAuthorizationResponse ¶
func (c *Controller) PresentAuthorizationResponse(e echo.Context) error
PresentAuthorizationResponse (POST /oidc/present).
type EchoRouter ¶
type EchoRouter interface { CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route }
This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration
type ServerInterface ¶
type ServerInterface interface { // Used to submit authorization response to verifier through VCS // (POST /oidc/present) PresentAuthorizationResponse(ctx echo.Context) error }
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts echo contexts to parameters.
func (*ServerInterfaceWrapper) PresentAuthorizationResponse ¶
func (w *ServerInterfaceWrapper) PresentAuthorizationResponse(ctx echo.Context) error
PresentAuthorizationResponse converts echo context to params.