Documentation ¶
Index ¶
Constants ¶
View Source
const HIX_LOCALUSER_SYSTEM = "https://www.cwz.nl/hix-user"
View Source
const HIX_ORG_OID_SYSTEM = "https://www.cwz.nl/hix-org-oid"
Variables ¶
This section is empty.
Functions ¶
func FormatXSDDateTime ¶
func GetCurrentXSDDateTime ¶
func GetCurrentXSDDateTime() string
Types ¶
type AzureConfig ¶
type AzureConfig struct { KeyVaultConfig AzureKeyVaultConfig `koanf:"keyvault"` CredentialType string `koanf:"credentialtype"` }
type AzureKeyVaultConfig ¶
type Config ¶
type Config struct { Enabled bool `koanf:"enabled"` ApiUrl string `koanf:"apiurl"` //The FHIR API URL StsUrl string `koanf:"stsurl"` //The SAML STS URL BaseUrl string `koanf:"baseurl"` //The base URL of zorgplatform, can be either their acc or prd URL SAMLRequestTimeout time.Duration `koanf:"samlrequesttimeout"` //The timeout for the SAML request, e.g. 10s, 100ms etc SigningConfig SigningConfig `koanf:"sign"` DecryptConfig DecryptConfig `koanf:"decrypt"` TaskPerformerUra string `koanf:"taskperformerura"` AzureConfig AzureConfig `koanf:"azure"` X509FileConfig X509FileConfig `koanf:"x509"` }
func DefaultConfig ¶
func DefaultConfig() Config
type DecryptConfig ¶
type LaunchContext ¶
type LaunchContext struct { Bsn string SubjectNameId string Practitioner fhir.Practitioner PractitionerRole fhir.PractitionerRole ServiceRequest fhir.ServiceRequest WorkflowId string }
type RsaOaepXmlSuite ¶
type RsaOaepXmlSuite struct { }
RsaOaepXmlSuite is a xmlenc.Decrypter that can decrypt using RSA-OAEP-MGF1P, with a potentially external key.
func (RsaOaepXmlSuite) Algorithm ¶
func (e RsaOaepXmlSuite) Algorithm() string
type SecureTokenService ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) EhrFhirProxy ¶
func (*Service) RegisterHandlers ¶
func (*Service) RequestAccessToken ¶
func (s *Service) RequestAccessToken(ctx context.Context, launchContext LaunchContext, tokenType TokenType) (string, error)
RequestAccessToken generates the SAML assertion, signs it, sends the SOAP request to the Zorgplatform STS and teturns the SAML access token
type SigningConfig ¶
Click to show internal directories.
Click to hide internal directories.