public static SecProvider GetSecProvider() { if (_secProvider == null) { string url = ConfigurationManager.AppSettings["MOBOTSecurityWSUrl"]; _secProvider = new SecProvider(url, false); } return(_secProvider); }
public static SecProvider GetSecProvider() { if ( _secProvider == null ) { string url = ConfigurationManager.AppSettings[ "MOBOTSecurityWSUrl" ]; _secProvider = new SecProvider( url, false ); } return _secProvider; }
public void OnGet() { Roles = SecProvider.GetUserGlobalRoles(HttpContext.User.Identity as ClaimsIdentity); Claims = HttpContext.User.Identity as ClaimsIdentity; }