I have a WCF service with netTcp Binding (Message - UserName).
I implemented my own UserNamePasswordValidator.Validate Method, in this Method I check the credentials and there I get an variable which I need later in my customPrincipal.
My Question now, how can I get this variable from my UserNamePasswordValidator to the customPrincipal?
Edit
Got it to work, i had to implement the following custom things:
- CustomServiceCredentials
- ServiceCredentialsSecurityTokenManager
- UserNameSecurityTokenAuthenticator
- UserNamePasswordValidator
- -> with custom Validation method with return value
- AuthorizationPolicy