Skip to main content
.NET Framework 4.5.2+

IsGrantedAdapter Class

The static class used to maintain the list of registered Security Adapters and process the security permission requests using these adapters.

Namespace: DevExpress.ExpressApp.Security.Adapters

Assembly: DevExpress.ExpressApp.Security.v24.1.dll

Declaration

public static class IsGrantedAdapter

Remarks

To register or customize Security Adapters, pass an instance of the corresponding Security Adapter Provider to the IsGrantedAdapter.Enable method. You can call this static method from any place of your code which is executed before a user is logged on, e.g.:

  • in the constructor of your platform-agnostic module located in the Module.cs (Module.vb) file;
  • in the constructor of your application located in the WinApplication.cs (WinApplication.vb) or WebApplication.cs (WebApplication.vb) file;
  • in the Main method of the WinForms application located in the Program.cs (Program.vb) file, before the WinApplication.Start call;
  • in the Application_Start method of the ASP.NET Web Forms application located in the Global.asax.cs (Global.asax.vb) file, before the WebApplication.Start call.

For instance, to register the XpoIntegratedCachedRequestSecurityAdapter, use the following code.

using DevExpress.ExpressApp.Security.Adapters;
using DevExpress.ExpressApp.Security.Xpo.Adapters;
// ...
IsGrantedAdapter.Enable(new XpoIntegratedCachedRequestSecurityAdapterProvider());

Inheritance

Object
IsGrantedAdapter
See Also