Click here to Skip to main content
15,897,519 members
Home / Discussions / WPF
   

WPF

 
QuestionThe Property 'Content' is set more than once - I cant see were I am doing this Pin
Paul Harsent25-Mar-11 2:08
Paul Harsent25-Mar-11 2:08 
AnswerRe: The Property 'Content' is set more than once - I cant see were I am doing this Pin
Pete O'Hanlon25-Mar-11 2:16
mvePete O'Hanlon25-Mar-11 2:16 
GeneralRe: The Property 'Content' is set more than once - I cant see were I am doing this Pin
Paul Harsent25-Mar-11 2:24
Paul Harsent25-Mar-11 2:24 
GeneralRe: The Property 'Content' is set more than once - I cant see were I am doing this Pin
Ian Shlasko25-Mar-11 2:44
Ian Shlasko25-Mar-11 2:44 
GeneralRe: The Property 'Content' is set more than once - I cant see were I am doing this Pin
Pete O'Hanlon25-Mar-11 2:56
mvePete O'Hanlon25-Mar-11 2:56 
AnswerRe: The Property 'Content' is set more than once - I cant see were I am doing this Pin
Abhinav S26-Mar-11 6:20
Abhinav S26-Mar-11 6:20 
QuestionWCF: Message Security with a User Name Client - how to retrieve username+pwd from server side on a per request basis? [modified] Pin
devvvy24-Mar-11 22:16
devvvy24-Mar-11 22:16 
AnswerRe: WCF: Message Security with a User Name Client - how to retrieve username+pwd from server side on a per request basis? Pin
SledgeHammer0125-Mar-11 11:02
SledgeHammer0125-Mar-11 11:02 
By default, there is no authentication.

If you want authentication, they have a bunch of different ways to go. I won't go into all of them, but it sounds like you want the custom validator. In any event, most (if not all) require a cert and SSL / HTTPS. Otherwise you would send credentials over clear text which is a no-no.

For the custom validator, SecurityMode is set to "TransportWithMessageCredential" and <serviceCredentials> has a section similar to:

<userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="x.y.Portal.UserNamePasswordValidator, Portal" />

UserNamePasswordValidator is a class you create that derives from UserNamePasswordValidator.

Thats just scratching the surface on the implementation details, I won't go into all of them since there are a lot (as with everything in WCF), but that should give you some good buzz words to google.

EDIT:

Oh yeah, forgot about your other question...

Once you get the password validator set up, you can get the username with:

ServiceSecurityContext.Current.PrimaryIdentity.Name
GeneralRe: WCF: Message Security with a User Name Client - how to retrieve username+pwd from server side on a per request basis? Pin
devvvy27-Mar-11 21:57
devvvy27-Mar-11 21:57 
QuestionWrapPanel Bound To Collection Pin
Kevin Marois24-Mar-11 12:09
professionalKevin Marois24-Mar-11 12:09 
AnswerRe: WrapPanel Bound To Collection Pin
Mycroft Holmes24-Mar-11 12:46
professionalMycroft Holmes24-Mar-11 12:46 
GeneralRe: WrapPanel Bound To Collection Pin
Kevin Marois24-Mar-11 12:57
professionalKevin Marois24-Mar-11 12:57 
GeneralRe: WrapPanel Bound To Collection Pin
Kevin Marois24-Mar-11 13:29
professionalKevin Marois24-Mar-11 13:29 
GeneralRe: WrapPanel Bound To Collection Pin
SledgeHammer0124-Mar-11 14:06
SledgeHammer0124-Mar-11 14:06 
GeneralRe: WrapPanel Bound To Collection Pin
Kevin Marois24-Mar-11 14:25
professionalKevin Marois24-Mar-11 14:25 
GeneralRe: WrapPanel Bound To Collection Pin
SledgeHammer0124-Mar-11 15:10
SledgeHammer0124-Mar-11 15:10 
GeneralRe: WrapPanel Bound To Collection Pin
SledgeHammer0124-Mar-11 15:13
SledgeHammer0124-Mar-11 15:13 
GeneralRe: WrapPanel Bound To Collection Pin
Mycroft Holmes24-Mar-11 15:50
professionalMycroft Holmes24-Mar-11 15:50 
GeneralRe: WrapPanel Bound To Collection [modified] Pin
Kim Breugelmans24-Mar-11 20:19
Kim Breugelmans24-Mar-11 20:19 
GeneralRe: WrapPanel Bound To Collection Pin
Kevin Marois25-Mar-11 5:43
professionalKevin Marois25-Mar-11 5:43 
GeneralRe: WrapPanel Bound To Collection Pin
SledgeHammer0125-Mar-11 6:32
SledgeHammer0125-Mar-11 6:32 
GeneralRe: WrapPanel Bound To Collection Pin
Kevin Marois25-Mar-11 7:07
professionalKevin Marois25-Mar-11 7:07 
GeneralOk Everyone, Here It Is Pin
Kevin Marois25-Mar-11 7:31
professionalKevin Marois25-Mar-11 7:31 
GeneralRe: WrapPanel Bound To Collection Pin
Kim Breugelmans25-Mar-11 7:04
Kim Breugelmans25-Mar-11 7:04 
GeneralRe: WrapPanel Bound To Collection Pin
SledgeHammer0125-Mar-11 9:30
SledgeHammer0125-Mar-11 9:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.