This tag doesn't currently have an excerpt. Help contribute by writing one
Questions tagged [principal]
173 questions
7
votes
1 answer
What's the basic ideas of *continuous physic simulation* like box2d/bullet3d?
Traditional physics simulation in games or graphics industry was basically discrete.
But engines nowadays such as box2d or bullet3d implement continuous physics simulation. I know basic principles of discrete simulation, but I have no idea about…

eonil
- 83,476
- 81
- 317
- 516
7
votes
1 answer
Set the Thread.CurrentPrincipal from IAuthorizationPolicy?
I have a WCF service running under .NET Framework 4.6.2. I have used the web.config before to configure the service with my custom IAuthorizationPolicy like this :
behaviorConfiguration="MyClientService.CustomValidator_Behavior"…

Banshee
- 15,376
- 38
- 128
- 219
7
votes
1 answer
psych: principal - loadings components
My question is concerned with the principal() function in psych package.
set.seed(0)
x <- replicate(8, rnorm(10))
pca.x <- principal(x, nf=4, rotate="varimax")
I know if I want to see the loadings table, I can use loading.x <-loadings(pca.x), than…

Novus
- 135
- 2
- 8
6
votes
2 answers
How do I restrict access to a URL using Spring security and a property from the spring security object?
I'm using Spring 5.1 and Spring security 4.2. I'm configured access rules using an XML file. My question is, how do I write an intercept rule (access control to a URL) based on a property in the Spring security context? That is, I have a…

Dave
- 15,639
- 133
- 442
- 830
6
votes
3 answers
use Service Principal when reading azure blob
i followed the tutorial (below *)
and now have a Service Principal .
How can i use this Service Principal when reading a blob using Get-AzureStorageBlob ?
Get-AzureStorageBlob requires a New-AzureStorageContext , can i use the SP instead of…

petercli
- 629
- 1
- 8
- 27
6
votes
1 answer
Claims-based authentication for WCF RESTful services
I've been working through various samples to try and piece together a solution for SAML token-based authentication for ASP.Net web services and WCF RESTful web services... some of the samples I've been…

Tyler
- 859
- 1
- 8
- 10
6
votes
3 answers
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 want to do is to set Thread.CurrentPrincipal to my custom Principal object, just after the user is authenticated.
I'm using the setter:…

Goran
- 1,807
- 7
- 27
- 41
5
votes
1 answer
Login with IAuthorizationPolicy and UserNamePasswordValidator with header data?
I have a WCF service where I use a custom UserNamePasswordValidator to validate user.
public override void Validate(string userName, string password)
{
LoginHelper loginHelper = new LoginHelper();
…

Banshee
- 15,376
- 38
- 128
- 219
5
votes
1 answer
Add information to the subject on apache shiro
Im using apache shiro. When i want to know if the user have permissions and roles i use SecutiryUtils.getSubject(). I like to know how to add more information to the subject like email, primary key and any other business information that i need so i…

Tiago Wanke Marques
- 91
- 9
4
votes
1 answer
Authentication / PrincipalPermission not work
I work in WCF and am writing my Authentication Manager which is based on IHttpModule and it works fine. One the of methods in my Authentication class creates a GenericPrincipal object in Context.User.
For example
app.Context.User = new…

user634199
- 91
- 2
- 5
4
votes
2 answers
WCF Service - Custom Principal
In the constructor of my WCF service class I am setting the current principal to be that of the principal passed in the header of the message:
Thread.CurrentPrincipal =…

David Ward
- 3,739
- 10
- 44
- 66
4
votes
1 answer
Constructing scores from principal loadings in R
I want to understand how the principal() function in psych package calculate the $score element.
I want to try the covariance matrix rather than correlation matrix.
model <- principal(mtcars[8:11],nfactors=4, rotate='none', scores=T,…

Novus
- 135
- 2
- 8
4
votes
1 answer
How does IsInitiating working on a WCF contract?
From reading this I thought that a client can´t run a IsInitiating=false service method before a IsInitiating=true service method have been executed. But in our WCF service that are a singelton I can call the service methods as I like, there is no…

Banshee
- 15,376
- 38
- 128
- 219
3
votes
2 answers
WCF service authorization manager setting the Thread.CurrentPrincipal
I have a custom ServiceAuthorizationManager where i override CheckAccess and validate a custom auth token that is part of the URL. After i validate, i set the Thread.CurrentPrincipal with a GenericPrincipal. But when the request finally reaches my…

sash
- 501
- 1
- 6
- 14
3
votes
1 answer
WCF Service throws error when validating Credentials against PrincipalContext?
I have a WCF service, which works if I use one login, but throws the following error if I try logging in with any other login. Strangely enough, if I change the password to the working login, the new password doesn't work but the old one still does.…

Rachel
- 130,264
- 66
- 304
- 490