Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component handles authentication with external services (MinVWS).
func (*Component) MinVWSHTTPClient ¶ added in v0.8.0
func (c *Component) MinVWSHTTPClient(ctx context.Context, scope []string, uraNumber string, audience string) (*http.Client, error)
MinVWSHTTPClient creates an HTTP client suitable for making authenticated requests to the Ministry of Health's APIs.
func (*Component) RegisterHttpHandlers ¶
type Config ¶
type Config struct {
MinVWS MinistryAuthConfig `koanf:"minvws"`
}
type HTTPClientProvider ¶ added in v0.8.0
type MinistryAuthConfig ¶ added in v0.8.0
type MinistryAuthConfig struct {
tlsutil.Config `koanf:",squash"`
// TokenEndpoint is the URL of the Ministry's token endpoint, e.g. "https://oauth.proeftuin.gf.irealisatie.nl/oauth/token"
TokenEndpoint string `koanf:"tokenendpoint"`
}
MinistryAuthConfig holds the configuration for authenticating with the Ministry of Health's (MinVWS) OAuth2 Authorization Server using the client credentials flow with JWT assertion.
Click to show internal directories.
Click to hide internal directories.