Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / October 2005

Tip: Looking for answers? Try searching our database.

WSE 3 Oct - username over transport

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Henrik Gøttig - 25 Oct 2005 13:12 GMT
Hi group

I am using WSE 3 Oct CTP and the username over transport assertion.

I created a Webservice and the corresponding proxy. Both decorated with
i the Policy attribute where I defined the policy (UserNameOverTransport).

I keep getting 401 - Access denied errors.

In the client I supply credentials by using the ClientCredentials
property of my WSE generated WS proxy class. I construct the credentials
using UserNameToken and with the parameters username, password and no
password encryption option as the last parameter.

There's no role authorisation on the server side.

Another question is of more general interest:

When my user gets authenticated (against Active Directory I guess) does
the roles (groups in AD) my user is in also get applied by the WSE
infrastructure, so that I can issue a IsUserInRole() from code to verify
the authorization inside a webmethod programtically?

Regards

Henrik

What can be wrong. I guess it is something really simple.
Zoodor - 26 Oct 2005 08:30 GMT
For the first point, have you checked your virtual directory settings? Can
you connect to the asmx page from a web browser?

On the second issue, if you are using the default UsernameTokenManager
(which it sounds like you are), then Wse will create a WindowsPrincipal
object that you can use to query role membership - have you read the hands on
lab, it's the best way of learning about Wse that I've found:

http://www.microsoft.com/downloads/details.aspx?familyid=9ACD1F8E-97E2-43E2-B484
-A74A014A8206&displaylang=en


> Hi group
>
[quoted text clipped - 24 lines]
>
> What can be wrong. I guess it is something really simple.
Henrik Gøttig - 26 Oct 2005 08:51 GMT
> For the first point, have you checked your virtual directory settings? Can
> you connect to the asmx page from a web browser?
[quoted text clipped - 5 lines]
>
> http://www.microsoft.com/downloads/details.aspx?familyid=9ACD1F8E-97E2-43E2-B484
-A74A014A8206&displaylang=en

Hi Zoodor

Thanx for the link. It cleared things up and it now works like charm.
Thumbs up!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.