TeamsUserCredential Constructor

Definition

Constructor of TeamsUserCredential. Developer need to configure TeamsFx service before using this class.

C#
public TeamsUserCredential (Microsoft.Extensions.Options.IOptions<Microsoft.TeamsFx.Configuration.AuthenticationOptions> authenticationOptions, Microsoft.JSInterop.IJSRuntime jsRuntime, Microsoft.Extensions.Logging.ILogger<Microsoft.TeamsFx.TeamsUserCredential> logger, Microsoft.TeamsFx.Helper.IIdentityClientAdapter identityClientAdapter);

Parameters

authenticationOptions
IOptions<AuthenticationOptions>

Authentication options filled by DI.

jsRuntime
IJSRuntime

JavaScript interop runtime.

logger
ILogger<TeamsUserCredential>

Logger of TeamsUserCredential Class.

identityClientAdapter
IIdentityClientAdapter

Global instance of adaptor to call MSAL.NET library

Exceptions

When client id, client secret, initiate login endpoint or OAuth authority is missing or invalid in config.

Applies to

Producto Versiones
Microsoft Teams Framework .NET SDK Latest