Top "Principal" questions

Use this tag for questions related to a principal programming principle.

Keycloak retrieve custom attributes to KeycloakPrincipal

In my rest service i can obtain the principal information after authentication using KeycloakPrincipal kcPrincipal = (KeycloakPrincipal) servletRequest.getUserPrincipal(); statement. Keycloak …

authentication jboss customization principal keycloak
How should I check if a user is authenticated in MVC5?

I have seen the following two accessible booleans: System.Web.Mvc.Controller.User.Identity.IsAuthenticated System.Web.Mvc.Controller.Request.…

c# asp.net-mvc authentication principal
How I get Active Directory User Properties with System.DirectoryServices.AccountManagement Namespace?

I want do get Active Directory Properties from a user and I want to use System.DirectoryServices.AccountManagement. my code: …

c# properties active-directory principal userprincipal
How do I implement custom Principal and Identity in ASP.NET MVC?

I want to store extra information in the authenticated user so that I can have it easily accessible (like User.…

asp.net-mvc-2 forms-authentication identity principal
How to get logged user name/Principal in Spring MVC REST channel?

I have Spring MVC REST channel: @Controller @RequestMapping("/rest") public class REST { and I have my method: @RequestMapping(value = "/doSomething") …

java spring spring-mvc httprequest principal
How to understand Principals in SQL Server?

This sounds stupid but I find it really confusing: in MSDN the definition is the entity that can request SQL …

sql-server database-permissions principal
How to set Thread.CurrentPrincipal for use throughout the application?

In an ASP.net application I'm using a Login control with a custom membership provider that I wrote. What I …

asp.net authentication identity principal
Thread.CurrentPrincipal in .NET console application

Here is a trivial console application that i run in command prompt: using System; using System.Threading; namespace Test { internal …

.net security windows-7 .net-4.0 principal