BackendServiceConfig class
Backend service configuration
- Inheritance
-
- Object
- AuthConfig
- BackendServiceConfig
Constructors
-
BackendServiceConfig({required Uri fhirBaseUrl, required String clientId, required String privateKey, required Uri tokenUrl, List<
String> scopes = const <String>[], bool allowInsecureConnections = false, String algorithm = 'RS384', String? keyId, Duration tokenLifetime = const Duration(minutes: 5)}) -
Creates a SMART Backend Services configuration that authenticates via a
signed client-assertion JWT (
privateKey/algorithm) attokenUrl. -
BackendServiceConfig.fromJson(Map<
String, dynamic> json) -
Create from JSON
factory
Properties
- algorithm → String
-
JWT signing algorithm
final
- allowInsecureConnections → bool
-
Allow plaintext (non-HTTPS) OAuth/OIDC endpoints.
finalinherited
- authMethod → ClientAuthMethod
-
Client authentication method
finalinherited
- clientId → String
-
OAuth client ID
finalinherited
- clientSecret → String?
-
Client secret (for confidential clients)
finalinherited
- fhirBaseUrl → Uri
-
FHIR server base URL
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isConfidentialClient → bool
-
Check if this is a confidential client
no setterinherited
- isPublicClient → bool
-
Check if this is a public client
no setterinherited
- keyId → String?
-
Key ID for JWT header
final
- privateKey → String
-
Private key for JWT signing
final
- redirectUri → Uri
-
OAuth redirect URI
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scopes
→ List<
String> -
Requested scopes
finalinherited
- tokenLifetime → Duration
-
JWT token lifetime
final
- tokenUrl → Uri
-
Token endpoint URL
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{bool includeSecrets = false}) → Map< String, dynamic> -
Convert to JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited