Namespace Microsoft.Agents.Builder.App.UserAuth
Classes
- UserAuthorizationFeature
UserAuthorization supports and extensible number of OAuth flows.
Auto Sign In: If enabled in UserAuthorizationOptions, sign in starts automatically after the first Message the user sends. When the sign in is complete, the turn continues with the original message. On failure, OnUserSignInFailure(Func<ITurnContext, ITurnState, string, SignInResponse, CancellationToken, Task>) is called.
Manual Sign In: SignInUserAsync(ITurnContext, ITurnState, string, string, IList<string>, CancellationToken) is used to get a cached token or start the sign in. In either case, the OnUserSignInSuccess(Func<ITurnContext, ITurnState, string, string, CancellationToken, Task>) and OnUserSignInFailure(Func<ITurnContext, ITurnState, string, SignInResponse, CancellationToken, Task>) should be set to handle continuation. That is, after calling SignInUserAsync, the turn should be considered complete, and performing actions after that could be confusing. i.e., Perform additional turn activity in OnUserSignInSuccess.
- UserAuthorizationOptions
Options for user authorization.
Delegates
- AutoSignInSelectorAsync
Delegate for determining whether user authorization should be enabled for an incoming Activity.