 |
|
 |
This is not working with SharePoint Environment
Please advise, if way to achieve same in SharePoint
Thanks
Life's Like a mirror. Smile at it & it smiles back at you.- P Pilgrim
So Smile Please
|
|
|
|
 |
|
 |
Hello
This code works fine locally. But when I host it on IIS, does not work.
Any idea if I need to do some changes ?
I am using IIS 6
Thanks
NileshDT
|
|
|
|
 |
|
 |
You probably need to enable the Digest Authentication
|
|
|
|
 |
|
 |
simple, short, and right to the point. Yet, very useful.
Great Job!
|
|
|
|
 |
|
|
 |
|
 |
You should avoid using anything in the HTML markup for security (i.e. identifying the user) since this can be easily hacked. A better approach is to use a WCF service and then look at ServiceSecurityContext.Current from within the service. Another option (i.e. if you are using home-grown security), is to pass a random token such as a GUID which is associated with the user ID behind the scenes. That will make it more difficult to hack since it is not practical to guess a valid GUID much less one for a specific user. Also, you can change GUIDs each time the user logs in.
|
|
|
|
 |
|
 |
Gave the exact information I was looking for with clear and consise and working examples.
|
|
|
|
 |
|
 |
That code was awesome!!.I am also working on an another aspect.
I want to get the user machine name.
Do we have a workaround for that?
|
|
|
|
 |
|
 |
When I execute the App.UserID in my Silverlight control, I got the string "<%=HttpContext.Current.User.Identity.Name%>" returned. Which part I got wrong? Thanks.
|
|
|
|
 |
|
 |
Please recheck your web.config on your web project and check the variable declaration
value="UserAccount=<%=HttpContext.Current.User.Identity.Name%>" />
|
|
|
|
 |
|
 |
Actually I just copy-and-paste it but still not OK
|
|
|
|
 |
|
 |
Thanks for this simple and concrete solution!
5 for you!
|
|
|
|
 |
|
 |
This just saved me a bunch of code (and pain). You got my 5.
|
|
|
|
 |
|
 |
i got the following error
The given key was not present in the dictionary.
i got the error under application_startup method
|
|
|
|
 |
|
 |
Hi,
Please check your Object ID parameter, and also check you have defined the variable InitParams correctly. Also try put a break point in App.xaml.cs Application startup method and I am sure it breaks on the line where you assign InitParams variable a value.
Thanks
|
|
|
|
 |
|
 |
i have the same error, actually i am runnin your sample
|
|
|
|
 |
|
 |
Well done really good stuff here and a lot easier than messing about with a wcf service
|
|
|
|
 |
|
|
 |
|
 |
Not bad for an article so short... can't complain about the results though.
Good Work!
|
|
|
|
 |
|
 |
Thank you. It was basically designed for blog entry, just copied and pasted it on code project. My apologies. Thanks for the comment.
|
|
|
|
 |
|
|
 |
|
 |
... but it helped me, and that's not a bad argument for sharing your knowledge
|
|
|
|
 |
|
 |
My apologies. Next time around I will try and write a proper article.
|
|
|
|
 |
|
 |
Wow.. nice timing on this. Today, I was implementing the whole windows authentication with WCF but I was running into issues with the whole configuration on the prod server. I too thought it was overkill and trivial to implement this just to get a username.
I went ahead and implemented this and it works great. Thanks for information.
|
|
|
|
 |
|
 |
Wouldn't it be trivial to impersonate a user using this technique?
|
|
|
|
 |