Esempio n. 1
0
        public static SecProvider GetSecProvider()
        {
            if (_secProvider == null)
            {
                string url = ConfigurationManager.AppSettings["MOBOTSecurityWSUrl"];
                _secProvider = new SecProvider(url, false);
            }

            return(_secProvider);
        }
Esempio n. 2
0
        public static SecProvider GetSecProvider()
        {
            if ( _secProvider == null )
            {
                string url = ConfigurationManager.AppSettings[ "MOBOTSecurityWSUrl" ];
                _secProvider = new SecProvider( url, false );
            }

            return _secProvider;
        }
Esempio n. 3
0
 public void OnGet()
 {
     Roles  = SecProvider.GetUserGlobalRoles(HttpContext.User.Identity as ClaimsIdentity);
     Claims = HttpContext.User.Identity as ClaimsIdentity;
 }