@primno/dataverse-auth
Version:
Authenticate to Dataverse and Dynamics 365 with a connection string or OAuth 2.0. Provides a token persistence cache.
17 lines (16 loc) • 440 B
TypeScript
export interface Authority {
/**
* Authority url.
*/
authUrl: string;
/**
* Resource id / scope.
*/
resource?: string;
}
/**
* Discover authority from a Dataverse/D365 url.
* @param url Url to discover authority from.
* @param client Web client to use for discovery. If not specified, a new axios client will be created.
*/
export declare function discoverAuthority(url: string): Promise<Authority>;