identity

How to grant identity ApplicationPoolIdentity read rights to folder within my site

梦想的初衷 提交于 2019-12-03 14:49:41
On our Windows 2008 R2 server I have a site running under the default ASP.NET v4.0 application pool. The identity of ASP.NET v.4.0 app pool is set to "ApplicationPoolIdentity" (I guess this is default). How do I grant this identity access to read from a custom folder within my site. I have tried "Application Pool Identity" and "ApplicationPoolIdentity" but both gives me: An object named "Application Pool Identity" cannot be found. Bonus question = should I instead forget about all this and make the change to store the files in app_data folder? Would that solve the issue? karlm ICACLS <folder>

Adding auto increment identity to existing table in oracle which is not empty

蹲街弑〆低调 提交于 2019-12-03 12:53:51
I was wondering how can I add an identity column to existing oracle table? I am using oracle 11g. Suppose I have a table named DEGREE and I am going to add an identity column to that. FYI table is not empty. You can not do it in one step. Instead, Alter the table and add the column (without primary key constraint) ALTER TABLE DEGREE ADD (Ident NUMBER(10)); Fill the new column with data which will fulfill the primary key constraint (unique/not null), e.g. like UPDATE DEGREE SET Ident=ROWNUM; Alter the table and add the constraint to the column ALTER TABLE DEGREE MODIFY (Ident PRIMARY KEY);

How to handle 5 million users? ASP.NET Identity

≡放荡痞女 提交于 2019-12-03 12:42:45
问题 I am running a ASP.NET mvc5 app which currently has 5 million users. It is hosted in the Azure cloud. For the authentication I use the Asp.Net Identity for EntityFramework. However, the more users I get, the slower the register function becomes. I tried scaling the database, but the results are still the same. It takes around 6-7 seconds for a new user to register. Also I tried searching how I can improve the performance of the identity system, but I couldn't really find anything relevant. I

How to change error message in ASP.NET Identity

余生颓废 提交于 2019-12-03 10:56:06
I have one question. I'm trying change error message in Identity ASP .NET and I don't know how do it. I want change error message - "Login is already taken". CreateAsync method return this error message. Please help me. The Microsoft.AspNet.Identity.UserManager<TUser> class has a public property called UserValidator of type IIdentityValidator<TUser> . The constructor for UserManager sets that property to an instance of Microsoft.AspNet.Identity.UserValidator<TUser> . The error messages you see when calling CreateAsync come from the resources embedded in the Microsoft.AspNet.Identity.dll and

Advice Please: SQL Server Identity vs Unique Identifier keys when using Entity Framework

会有一股神秘感。 提交于 2019-12-03 09:45:00
I'm in the process of designing a fairly complex system. One of our primary concerns is supporting SQL Server peer-to-peer replication. The idea is to support several geographically separated nodes. A secondary concern has been using a modern ORM in the middle tier. Our first choice has always been Entity Framework, mainly because the developers like to work with it. (They love the LiNQ support.) So here's the problem: With peer-to-peer replication in mind, I settled on using uniqueidentifier with a default value of newsequentialid() for the primary key of every table. This seemed to provide a

Handling identity columns in an “Insert Into TABLE Values()” statement?

时光总嘲笑我的痴心妄想 提交于 2019-12-03 09:24:35
In SQL Server 2000 or above is there anyway to handle an auto generated primary key (identity) column when using a statement like the following? Insert Into TableName Values(?, ?, ?) My goal is to NOT use the column names at all. Eric By default, if you have an identity column, you do not need to specify it in the VALUES section. If your table is: ID NAME ADDRESS Then you can do: INSERT INTO MyTbl VALUES ('Joe', '123 State Street, Boston, MA') This will auto-generate the ID for you, and you don't have to think about it at all. If you SET IDENTITY_INSERT MyTbl ON , you can assign a value to the

Problem using custom principal and identity with WCF services

北城以北 提交于 2019-12-03 09:01:23
We are using a custom principal and identity type (ProdigyPrincipal/ProdigyIdentity) because we need extra information within our programs and services. In the program we set the principal and identity. When communicating with a WCF service the principal and identity are set, but after casting to our own type the principal and identity are null. I noticed that there is a difference between running in Debug mode and Unit Test mode. In Debug mode the type of the principal and identity are of type WindowsPrincipal and WindowsIdentity . In Unit Test mode the types are GenericPrincipal and

What is the Signing Credential in IdentityServer4?

核能气质少年 提交于 2019-12-03 08:53:56
问题 We are in the process of implementing Identity Server 4 with our .NET Core web app. I went trough the Identity Server documentation. When configuring the Identity server (using DI) there is the line: .AddTemporarySigningCredential I'm trying to understand what this Signing credential is but couldn't figure out. Therefore I don't know if it's ok to use the built in temporary, or if I should provide a different one. My question is, what is a signing credential and how should I use it? In the

JwtSecurityTokenHandler and TokenValidationParameters

会有一股神秘感。 提交于 2019-12-03 08:40:13
问题 I used to have a reference to Microsoft.IdentityModel.Tokens.JWT and everything was working fine. I updated to use the new System.IdentityModel.Tokens.Jwt but nothing seems to work now. It cannot find the ValidateToken method of the JwtSecurityTokenHandler and the TokenValidationParameters have no AllowedAudience , SigningToken or ValidateExpiration properties. What am I missing here? Can anyone provide with a working sample of a JWT validation with this? My "old" code : private static void

Is using MS SQL Identity good practice?

青春壹個敷衍的年華 提交于 2019-12-03 08:13:59
Is using MS SQL Identity good practice in enterprise applications? Isn't it make difficulties in creating business logic, and migrating database from one to another? James Yes, they work very well and are reliable, and perform the best. One big benefit of using identity fields vs non, is they handle all of the complex concurrency issues of multiple callers attempting to reserve new id's. This may seem like something trivial to code but it's not. These links below offer some interesting information about identity fields and why you should use them whenever possible. DB: To use identity column