UserAuthorization Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public class UserAuthorization
type UserAuthorization = class
Public Class UserAuthorization
- Inheritance
-
UserAuthorization
Remarks
This is always executed in the context of a turn for the user in ITurnContext.Activity.From.
Constructors
| UserAuthorization(AgentApplication, UserAuthorizationOptions) |
Properties
| DefaultHandlerName |
Methods
| ExchangeTurnTokenAsync(ITurnContext, String, String, IList<String>, CancellationToken) | |
| GetTurnToken(String) |
Obsolete.
Return a previously acquired token. |
| GetTurnTokenAsync(ITurnContext, String, CancellationToken) |
Return a previously acquired token. |
| OnUserSignInFailure(AuthorizationFailure) |
The handler function is called when the user sign in flow fails |
| SignOutUserAsync(ITurnContext, ITurnState, String, CancellationToken) | |