.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

SecurityStrategy.AnonymousAllowedTypes Property

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

Namespace: DevExpress.ExpressApp.Security

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

Declaration

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

Property Value

Type Description
IList<Type>

A list of types that users can access anonymously.

Property Value

Type Description
IList<Type>

A list of types that users can access anonymously.

Property Value

Type Description
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.

((SecurityStrategy)Security).AnonymousAllowedTypes.Add(typeof(Company));

This code should be executed before the application displays the logon window. For instance, you can add it to the application constructor in the WinApplication.cs (WinApplication.vb) and WebApplication.cs (WebApplication.vb) files.

See Also