terça-feira, 28 de fevereiro de 2012 23:45
When AuthenticationRequired is set to true in the SecuritySettings.xml file how can my code get the username and/or password entered by the user when they signed in? How can I get their roles? Is this even possible?
Really all I'm trying to do is secure my HttpGet and HttpPost messages by adding authentication/user roles data to the message headers but I don't know how to get it from the DssHost.
Todas as Respostas
quarta-feira, 29 de fevereiro de 2012 01:55Proprietário
This information is not available to services.
quarta-feira, 29 de fevereiro de 2012 03:36
ok then, that's clear and simple. Thanks for the quick response.
I must be mis-understanding something in the answer to this forum question then:
where do the 'security tokens' that are placed in the message headers come from then? I guess I assumed they must have been some-how related to the authentication, but your short and simple response now leads me to believe otherwise.
Also, another question about that post, where are the samples and/or documentation on how to extended the list of forwarders? I can't seem to find anything on how to "write my [your] own forwarder and add it to the forwarder "path"".
quarta-feira, 29 de fevereiro de 2012 15:55
Instead of getting the log-in credentials from the DssHost, is there some way to add a hook to the Dss Node Homepage that would allow me to pop-up my own user log-in screen?
Similarly, is there a way to configure the DSS-specific web server (that I am told is independent from IIS) to re-direct page requests if some (security) condition is not met?
quinta-feira, 1 de março de 2012 01:41Proprietário
The issue is that the information is in the Headers, but the Headers are not documented. Maybe I should have elaborated a little more. The information is there (obviously) but not easy to get at. If you are interested, poke around in the message itself. There is a HasHeaders flag and a Headers collection. You can use reflection in Visual Studio to look at the Microsoft.Dss.ServiceModel.Dssp.DsspOperation class.
The web server component of DssHost is in code that we only ship in binary form. You can't modify it. (That's part of the security design).
You could do some interesting things with an XSLT page associated with a service. Some of the samples that are included in the package have forms that can be used to input data to a service. However, typing credentials into a form this way would not be secure.
I can't guarantee that the Headers you want will be available and now I am getting out of my depth, so I might have to get somebody else to answer your questions.
quinta-feira, 1 de março de 2012 01:44Proprietário
Hmm. I take back what I just said about documentation. There is a small amount of documentation here:
Hopefully this will help you to figure out what you want.
- Marcado como Resposta Kobe1815 quinta-feira, 1 de março de 2012 15:46
quinta-feira, 1 de março de 2012 15:49
Thanks Trevor, that was a very helpful response.
If there is another team member that can provide more information, I would really appreciate their help as well.
Specifically, I am still puzzled about why Trevor Taylor said he can't guarantee that the Headers I want will be available.