EnvironmentVariableAuth
- Namespace:
PPDS.Auth - Assembly:
PPDS.Auth - Kind: Class
Summary
Reads authentication configuration from environment variables for CI/CD scenarios.
Members
Methods
TryCreateProfile
Nullable<ValueTuple<AuthProfile, string>> TryCreateProfile()
Returns a synthetic AuthProfile and client secret from environment variables, or null if none are set. Throws AuthenticationException if partially configured (1-3 of 4 required vars).
Fields
ClientIdVar
string ClientIdVar
Environment variable name for the application (client) ID.
ClientSecretVar
string ClientSecretVar
Environment variable name for the client secret.
CloudVar
string CloudVar
Environment variable name for the cloud environment (optional, defaults to Public).
EnvironmentUrlVar
string EnvironmentUrlVar
Environment variable name for the Dataverse environment URL.
TenantIdVar
string TenantIdVar
Environment variable name for the tenant ID.