ScopeHelper class

Utility class for generating authentication scope URLs for Copilot Studio.

Methods

getScopeFromSettings(ConnectionSettings)

Returns the scope URL needed to connect to Copilot Studio from the connection settings. This is used for authentication token audience configuration.

Method Details

getScopeFromSettings(ConnectionSettings)

Returns the scope URL needed to connect to Copilot Studio from the connection settings. This is used for authentication token audience configuration.

static function getScopeFromSettings(settings: ConnectionSettings): string

Parameters

settings
ConnectionSettings

Copilot Studio connection settings.

Returns

string

The scope URL for token audience (e.g., "https://api.powerplatform.com/.default").