ASP.NET

Moderators: None (Apply to moderate this forum)
Number of threads: 1733
Number of posts: 3304

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Microsoft Passport not redirecting?? Posted by aarnott on 7 Jul 2003 at 11:13 AM
Can anyone give me the shortest snippet of code available _that_works_ that allows users to log into my web site using Passport? I already have a Site ID issued by the Passport.Com site, and I've installed the SDK on my Windows 2003 Server. And I've typed up what code I think is appropriate. But my problem is that when I click on the Passport "Sign-In" button on my home page, the page just refreshes with a big long querystring tagged onto the end of the URL, and nothing in effect happens.

Here's the code I'm using in my Form_Load event:
phPassportSignIn.Controls.Add(New LiteralControl( _
Passport.LogoTag2(Request.PathInfo, 14400, False, _
Nothing, -1, Request.IsSecureConnection, _
Nothing, 0, False)))


Please help!

Report
Re: Microsoft Passport not redirecting?? Posted by raymcd on 8 Jul 2003 at 6:46 AM
: Can anyone give me the shortest snippet of code available _that_works_ that allows users to log into my web site using Passport? I already have a Site ID issued by the Passport.Com site, and I've installed the SDK on my Windows 2003 Server. And I've typed up what code I think is appropriate. But my problem is that when I click on the Passport "Sign-In" button on my home page, the page just refreshes with a big long querystring tagged onto the end of the URL, and nothing in effect happens.
:
: Here's the code I'm using in my Form_Load event:
: phPassportSignIn.Controls.Add(New LiteralControl( _
: Passport.LogoTag2(Request.PathInfo, 14400, False, _
: Nothing, -1, Request.IsSecureConnection, _
: Nothing, 0, False)))
:
:
: Please help!
:

You didn't mention the web.config, so I will. It should have the following:
<authentication mode="Passport" />
<authorization>
<deny users="?" />
</authorization>

I've never actually used Passport authentication, but if your machine is all set up with the sdk you should be good as gold. It appears that asp.net will automatically detect a user that hasn't been authenticated and will redirect for you. It also appears that MS will redirect back to the originally requested page automatically.

-Ray
Report
Re: Microsoft Passport not redirecting?? Posted by aarnott on 8 Jul 2003 at 7:10 AM
: <authentication mode="Passport" />
: <authorization>
: <deny users="?" />
: </authorization>

I hadn't put in the <deny users="?"> tag. I put it in and the site is redirecting to an authentication error page, stating that the user needs to log in using passport and provides the Sign-In button for me. But even that MS generated page isn't redirecting when you click on the Sign-In button. When I click on it, the page appears to remain the same while the URL changes to:
http://testinstitute.byu.edu/Default.aspx?msppchlg=1&mspplogin=https://login.passport-ppe.com/ppsecure/secure.srf%3Flc%3D1033%26id%3D41169%26ru%3Dhttp%253a%252f%252ftestinstitute.byu.edu%252fDefault.aspx%26tw%3D1800%26kv%3D1%26ct%3D1057673735%26ems%3D1%26seclog%3D10%26ver%3D2.1.6000.1%26tpf%3D3432e88e6f65a6ce67e298d23f2ee2a0
from the original, which was everything before the question mark. Any more ideas?
Report
Re: Microsoft Passport not redirecting?? Posted by raymcd on 8 Jul 2003 at 7:45 AM
Sounds like you are half way there. Are you using the development version of the PassportSDK? There are two versions, one for development and one for production. Even if you are, the dev version should be working.

-ray
Report
Re: Microsoft Passport not redirecting?? Posted by aarnott on 8 Jul 2003 at 8:13 AM
: Sounds like you are half way there. Are you using the development version of the PassportSDK? There are two versions, one for development and one for production. Even if you are, the dev version should be working.
:
: -ray
:

Hmmm... I know I'm set to the Pre-Production stage, but as for the edition of the SDK itself, I've installed the one I downloaded from:
http://msdn.microsoft.com/library/default.asp?url=/downloads/list/websrvpass.asp

It looks like this is the Dev version, but is there a different, production version out there? Or are you just referring to Pre- vs. Production stage?
Report
Re: Microsoft Passport not redirecting?? Posted by raymcd on 8 Jul 2003 at 12:14 PM
: : Sounds like you are half way there. Are you using the development version of the PassportSDK? There are two versions, one for development and one for production. Even if you are, the dev version should be working.
: :
: : -ray
: :
:
: Hmmm... I know I'm set to the Pre-Production stage, but as for the edition of the SDK itself, I've installed the one I downloaded from:
: http://msdn.microsoft.com/library/default.asp?url=/downloads/list/websrvpass.asp
:
: It looks like this is the Dev version, but is there a different, production version out there? Or are you just referring to Pre- vs. Production stage?
:

Speaking only from training and not from actual experience I think that there are two different versions of the sdk. Maybe the Production version is "unlocked" from the dev version once its licensed. Not sure. In any event, the whole purpose of the dev version is to try it out and work out any kinks before you license/go-live. You are almost working but not yet. You probably have two different issues: dev version and an unknown misconfig.

-ray



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.