Documentation
¶
Index ¶
- Constants
- func FormatXSDDateTime(t time.Time) string
- func GetCurrentXSDDateTime() string
- type AzureConfig
- type AzureKeyVaultConfig
- type Config
- type DecryptConfig
- type LaunchContext
- type OtherSessionData
- type RsaOaepXmlSuite
- type SecureTokenService
- type Service
- type SigningConfig
- type TokenType
- type X509FileConfig
Constants ¶
View Source
const HIX_LOCALUSER_SYSTEM = "https://santeonnl.github.io/shared-care-planning/ehr/hix/userid"
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
Tenants tenants.Config `koanf:"tenants"`
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
Practitioner fhir.Practitioner
PractitionerRole fhir.PractitionerRole
ServiceRequest fhir.ServiceRequest
WorkflowId string
ChipSoftOrganizationID string
}
type OtherSessionData ¶
type OtherSessionData struct {
LaunchContext LaunchContext
AccessToken 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) CreateEHRProxies ¶
CreateEHRProxies creates HTTP proxies and FHIR clients to interact with the Zorgplatform FHIR API. It should only be invoked once, because it creates caches with background goroutines.
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 returns the SAML access token
type SigningConfig ¶
Click to show internal directories.
Click to hide internal directories.