AadTokenProviderFactory class

Returns a preinitialized version of the AadTokenProviderFactory.

Properties

serviceKey

The service key for AadTokenProviderFactory.

Methods

getTokenProvider()

Returns an instance of the AadTokenProvider that communicates with the current tenant's configurable Service Principal.

Property Details

serviceKey

The service key for AadTokenProviderFactory.

static readonly serviceKey: ServiceKey<AadTokenProviderFactory>;

Property Value

ServiceKey<@microsoft/sp-http!default:class>

Method Details

getTokenProvider()

Returns an instance of the AadTokenProvider that communicates with the current tenant's configurable Service Principal.

getTokenProvider(): Promise<AadTokenProvider>;

Returns

Promise<@microsoft/sp-http!default:class>