Queries <fhir_base_url>/.well-known/smart-configuration (or validates a
supplied mock_config list) and verifies that "S256" PKCE is supported.
Value
A list with fhir_base_url, authorization_endpoint,
token_endpoint, and code_challenge_methods_supported.
Examples
cfg <- smart_discover_config(
"https://fhir.example.org/r4",
mock_config = list(
authorization_endpoint = "https://auth.example.org/authorize",
token_endpoint = "https://auth.example.org/token",
code_challenge_methods_supported = "S256"
)
)
cfg$authorization_endpoint
#> [1] "https://auth.example.org/authorize"
