I'm trying to understand how Application Pool Identity works. In the app pool that I created for my application, I specified a NT account. In the web code I'm also using HttpContext.Current.User.Identity.Name to maintain privileges (i.e, what buttons a user can see in the app). So when the application loads is the App Pool ID used to connect to the database and perform the respective database work? And since I have windows authentication mode enabled for the application is the windows login id used for Identity.Name? How come the App Pool ID isn't being used for Identity.Name?
If anyone knows of an article or a book that would be useful to read I would appreciate it.