smart_on_fhir

package
v0.0.0-...-a70b9b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendTokenSource

type BackendTokenSource struct {
	OAuth2ASTokenEndpoint string
	ClientID              string
	SigningKey            keys.SigningKey
}

BackendTokenSource is an oauth2.TokenSource for a SMART on FHIR backend client.

func (BackendTokenSource) Token

func (p BackendTokenSource) Token() (*oauth2.Token, error)

type Configuration

type Configuration struct {
	TokenEndpoint         string `json:"token_endpoint"`
	AuthorizationEndpoint string `json:"authorization_endpoint"`
}

Configuration represents the discovered SMART on FHIR configuration for the SMART on FHIR client. See https://build.fhir.org/ig/HL7/smart-app-launch/conformance.html#metadata

func DiscoverConfiguration

func DiscoverConfiguration(fhirBaseURL *url.URL) (*Configuration, error)

DiscoverConfiguration retrieves the SMART on FHIR configuration from the given FHIR base URL. It is expected to be found at `/.well-known/smart-configuration`. See https://build.fhir.org/ig/HL7/smart-app-launch/app-launch.html#retrieve-well-knownsmart-configuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL