Back to Devexpress

SecurityStrategy.AnonymousAllowedTypes Property

expressappframework-devexpress-dot-expressapp-dot-security-dot-securitystrategy-f9ae1727.md

latest1.9 KB
Original Source

SecurityStrategy.AnonymousAllowedTypes Property

Specifies types that users can access anonymously before they log in.

Namespace : DevExpress.ExpressApp.Security

Assembly : DevExpress.ExpressApp.Security.v25.2.dll

NuGet Package : DevExpress.ExpressApp.Security

Declaration

csharp
[Browsable(false)]
public IList<Type> AnonymousAllowedTypes { get; }
vb
<Browsable(False)>
Public ReadOnly Property AnonymousAllowedTypes As IList(Of Type)

Property Value

TypeDescription
IList<Type>

A list of types that users can access anonymously.

|

Remarks

Anonymous access may be required when you use custom logon parameters and want to display certain data in the logon window before a user logs on. Add the required types to the AnonymousAllowedTypes collection to grant access to these types before a successful user authentication. This code should be executed before the application displays the logon window.

The following examples demonstrate how to specify this property:

WinForms

  • In applications created in v22.1+:

  • In applications that do not use application builders:

See Also

SecurityStrategy Class

SecurityStrategy Members

DevExpress.ExpressApp.Security Namespace