CloudEndpoints
- Namespace:
PPDS.Auth.Cloud - Assembly:
PPDS.Auth - Kind: Class
Summary
Provides endpoint URLs for different Azure cloud environments.
Members
Methods
GetAuthorityBaseUrl
string GetAuthorityBaseUrl(CloudEnvironment cloud)
Gets the base authority URL (without tenant) for the specified cloud environment.
-
Param
cloud: The cloud environment. -
Returns: The base authority URL.
GetAuthorityHost
Uri GetAuthorityHost(CloudEnvironment cloud)
Gets the Azure.Identity authority host URI for the specified cloud environment.
-
Param
cloud: The cloud environment. -
Returns: The authority host URI.
GetAuthorityUrl
string GetAuthorityUrl(CloudEnvironment cloud, string tenantId)
Gets the Azure AD authority URL for the specified cloud environment.
-
Param
cloud: The cloud environment. -
Param
tenantId: Optional tenant ID. Defaults to "organizations" for multi-tenant. -
Returns: The authority URL.
GetAzureCloudInstance
AzureCloudInstance GetAzureCloudInstance(CloudEnvironment cloud)
Gets the MSAL Azure cloud instance for the specified cloud environment.
-
Param
cloud: The cloud environment. -
Returns: The Azure cloud instance.
GetFlowPortalUrl
string GetFlowPortalUrl(CloudEnvironment cloud)
Gets the Power Automate Maker portal base URL for the specified cloud environment.
-
Param
cloud: The cloud environment. -
Returns: The Flow portal base URL (no trailing slash).
GetGlobalDiscoveryUrl
string GetGlobalDiscoveryUrl(CloudEnvironment cloud)
Gets the Global Discovery Service URL for the specified cloud environment.
-
Param
cloud: The cloud environment. -
Returns: The Global Discovery Service URL.
GetMakerPortalUrl
string GetMakerPortalUrl(CloudEnvironment cloud)
Gets the Power Apps Maker portal base URL for the specified cloud environment.
-
Param
cloud: The cloud environment. -
Returns: The Maker portal base URL (no trailing slash).
GetPowerAppsApiUrl
string GetPowerAppsApiUrl(CloudEnvironment cloud)
Gets the Power Apps API base URL for the specified cloud environment. Used for connections, flows, and other Power Platform management APIs.
-
Param
cloud: The cloud environment. -
Returns: The Power Apps API base URL.
GetPowerAppsServiceScope
string GetPowerAppsServiceScope(CloudEnvironment cloud)
Gets the Power Apps Service scope URL for the specified cloud environment. This is the resource/audience used when acquiring tokens for the Flow API and Connections API.
-
Param
cloud: The cloud environment. -
Returns: The Power Apps Service scope URL (without /.default suffix).
GetPowerAutomateApiUrl
string GetPowerAutomateApiUrl(CloudEnvironment cloud)
Gets the Power Automate (Flow) API base URL for the specified cloud environment.
-
Param
cloud: The cloud environment. -
Returns: The Power Automate API base URL.
Parse
CloudEnvironment Parse(string value)
Parses a cloud environment from a string value.
-
Param
value: The string value (case-insensitive). -
Returns: The cloud environment.