Back to Devexpress

SecuredObjectSpaceProvider.CreateNonsecuredObjectSpace() Method

expressappframework-devexpress-dot-expressapp-dot-security-dot-clientserver-dot-securedobjectspaceprovider.md

latest2.5 KB
Original Source

SecuredObjectSpaceProvider.CreateNonsecuredObjectSpace() Method

Creates an Object Space that an application uses when a user tries to log on.

Namespace : DevExpress.ExpressApp.Security.ClientServer

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

NuGet Package : DevExpress.ExpressApp.Security.Xpo

Declaration

csharp
public IObjectSpace CreateNonsecuredObjectSpace()
vb
Public Function CreateNonsecuredObjectSpace As IObjectSpace

Returns

TypeDescription
IObjectSpace

An Object Space that an application uses when a user tries to log on.

|

Remarks

The following example demonstrates how to bypass security rules using a non-secured Object Space: Change the Current User Role in Code.

Note the following when you operate with a non-secured Object Space:

  • The non-secured Object Space ignores security permissions and provides access to all data. This means that the current user can modify data regardless of assigned roles.
  • If you need to interact with objects from the main (secured) and non-secured Object Spaces, use the GetObject(Object) method to copy the object from one Object Space to another.

Implements

CreateNonsecuredObjectSpace()

See Also

Change the Current User Role in Code

SecuredObjectSpaceProvider Class

SecuredObjectSpaceProvider Members

DevExpress.ExpressApp.Security.ClientServer Namespace