Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component is the MITZ component that handles FHIR consent bundles
func NewTestInstance ¶ added in v0.5.0
func (*Component) CheckConsent ¶
func (c *Component) CheckConsent(ctx context.Context, authzReq xacml.AuthzRequest) (*xacml.XACMLResponse, error)
CheckConsent triggers a consent check by invoking MITZ closed query. This is a non-HTTP function that can be invoked programmatically. It takes an AuthzRequest containing all required parameters for the consent check. Returns an XACMLResponse containing the decision (Permit/Deny/NotApplicable/Indeterminate) and the full XML response.
func (*Component) RegisterHttpHandlers ¶
RegisterHttpHandlers registers the HTTP handlers for the MITZ component
type Config ¶
type Config struct {
MitzBase string `koanf:"mitzbase"`
GatewaySystem string `koanf:"gatewaysystem"`
SourceSystem string `koanf:"sourcesystem"`
// NotifyEndpoint is the URL for subscription notifications
NotifyEndpoint string `koanf:"notifyendpoint"`
// TLSCertFile is the PEM certificate file OR .p12/.pfx file
TLSCertFile string `koanf:"tlscertfile"`
// TLSKeyFile is the PEM key file (not used if TLSCertFile is .p12/.pfx)
TLSKeyFile string `koanf:"tlskeyfile"`
// TLSKeyPassword is the password for encrypted key or .p12/.pfx file
TLSKeyPassword string `koanf:"tlskeypassword"`
// TLSCAFile is the CA certificate file to verify MITZ server
TLSCAFile string `koanf:"tlscafile"`
}
Config holds the configuration for the MITZ component
type ConsentChecker ¶ added in v0.5.0
type ConsentChecker interface {
// CheckConsent triggers a consent check by invoking MITZ closed query.
// It takes an AuthzRequest containing all required parameters for the consent check.
// Returns an XACMLResponse containing the decision (Permit/Deny/NotApplicable/Indeterminate) and the full XML response.
CheckConsent(ctx context.Context, authzReq xacml.AuthzRequest) (*xacml.XACMLResponse, error)
}
ConsentChecker defines the public API for the MITZ component
Click to show internal directories.
Click to hide internal directories.