public AzureTableRoleClaimsAuthenticationManager()
 {
     string connectionString = ConfigurationManager.AppSettings["AzureStorageConnectionString"];
     _userStore = new TableUserStore<TableUser>(connectionString);
     _issuer = ConfigurationManager.AppSettings.Get("ida:RoleClaimIssuer");
     if (String.IsNullOrWhiteSpace(_issuer))
     {
         _issuer = "DefaultRoleIssuer";
     }
 }
示例#2
0
 new public static TableEntityKeys CreateEntityKeys(UserKey key) =>
 TableUserStore <User> .CreateEntityKeys(key);
 public void Initialize()
 {
     //Cleanup(); //wait 40 seconds
     _userStore = new TableUserStore<TableUser>(connectionString);
     _mgr = new UserManager<TableUser>(_userStore);
 }