Ask a Question related to ASP.NET Web Services, Design and Development.
-
Mythran #1
Web Service w custom Principal
We have a class that Implements IPrincipal
(System.Security.Principal.IPrincipal). We have a business logic class
library assembly that checks the Principal object for role information to
see if the currently logged in user has access to specific roles...
<snip>
Public Class MyBusinessLogic
Inherits ServicedComponent
<AutoComplete()> _
Public Function Fetch() As Schema.MyTypedDataSet
Dim p As Principal = DirectCast( _
Threading.Thread.CurrentThread.CurrentPrincipal, _
Principal _
)
If Not p.IsInRole("My Role")
Throw New SecurityException("Missing access to My Role.")
End If
...
End Function
End Class
</snip>
Now we are trying to implement a web service that calls the Business Logic
class methods, but it fails because in the web service, the
Threading.Thread.CurrentThread.CurrentPrincipal object is not the same as in
the web application doing the calling. How can we get this Principal to be
set in the Current Thread of the Web Service?
Note: The Principal object has a property called Identity which is of type
IIdentity, which cannot be serialized.
Thanks in advance,
Mythran
Mythran Guest
-
Custom Principal
Hi, I use Custom Principal and it works well on my PC (Localhost). When I deploy it at my hosting service it fails. I print out... -
How to assign a custom principal with a custom soap extension
I have created a custom soap extension. What I need to do next is assign my own custom principal to the current request context so that the... -
Custom Windows Authentication Principal?
Ok here's the situation, I have several intranet applications at this company that use windows authentication. Now when people open the... -
Setting Principal for HttpWorkerRequest
re: http://www.dotnet247.com/247reference/msgs/31/159270.aspx (neither my news server, nor microsoft's seems to still carry this thread) I am... -
Set Windows Principal
Hi, My current legacy asp/becoming-asp.net application uses IIS Windows Authentication at present. What I need to do is let a user coming from...



Reply With Quote

