Share via


UserAuthorizationOptions Class

Definition

Options for user authorization.

public class UserAuthorizationOptions
type UserAuthorizationOptions = class
Public Class UserAuthorizationOptions
Inheritance
UserAuthorizationOptions

Constructors

UserAuthorizationOptions(IConnections, IUserAuthorization[])

Create UserAuthorizationOptions programmatically.

UserAuthorizationOptions(IServiceProvider, IConfiguration, IStorage, AutoSignInSelector, String)

Creates UserAuthorizationOptions from IConfiguration and DI.

Fields

AutoSignInOff
AutoSignInOnForAny
AutoSignInOnForMessages

Properties

AutoSignIn

Indicates whether the Agent should start the sign in flow when the user sends a message to the Agent or triggers a message extension. If the selector returns false, the Agent will not start the sign in flow before routing the activity to the Agent logic. If the selector is not provided, the default selector returns true.

DefaultHandlerName

The default user authorization handler name to use for AutoSignIn. If not specified, the first handler defined is used if Auto SignIn is enabled.

SignInFailedMessage

Optional sign in failure message. This is only used if the OnUserSignInFailure(AuthorizationFailure) is not set.

Applies to