Windows Live Authentication "strange behavior"

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
8/8/2010 1:52:09 PM
Gravatar
Total Posts 70

Windows Live Authentication "strange behavior"

Hi All,

I'm getting some "strange behavior" Windows Live sign in and registration.

Usefull Information:
- Using postgresql
- It's not a production enviroment
- It's running on localhost withou IIS (using Asp.Net development server)
- Using Code, ChangeSet 283
- Return Url configured in WindowsLive: http://localhost:60941/Secure/WindowsLiveAuthHandler.aspx

Steps to reproduce:
- Sign In using Windows Live Account
- Selected my Account
- got redirected to: Secure/RegisterWithWindowsLiveID.aspx
- Got Asked for User ID, E-mail, TimeZone with a message: "We where able to validate ..."
- Clicked on "Create Account"
- Got redirected to UserProfile
- The TimeZone was not the one I choosed just a while ago
- Fixed the TimeZone
- Updated the profile
- Signed Out
- Sign In using Windows LIve Account (again)
- Selected the same windows live account I just registered
- And .... no sign in ... I just got redirected to that same page ( Secure/RegisterWithWindowsLiveID.aspx )
- If I type the same user Id and E-mail I get a message saying "Sorry a user already exists .." (checked mp_user and the user is there)

Conclusions:
- The user is registered in the mp_users (confirmed in database), his windowsliveid is set but user cannot sign in (mojoportal tries to register him again).
 

8/9/2010 9:58:01 AM
Gravatar
Total Posts 18439

Re: Windows Live Authentication "strange behavior"

Hi,

I was able to reproduce and fix the issue about the time zone but I was not able to produce the problem about not being able to sign in, maybe that is pgsql specific, I will try that next.

The issue about the timezone was a bug where the control for the old time zone system was shown instead of the new one. The fix for this is in the repository, but to show the timezone on registration you will need to uncomment the new timezone control in the mojoProfile.config

Maybe you can try the latest code and see if ti works better for you. I will post again after I try it with pgsql, but it worked correctly so far testing with MS SQL.

Best,

Joe

8/9/2010 10:50:27 AM
Gravatar
Total Posts 18439

Re: Windows Live Authentication "strange behavior"

Hi,

This did turn out to be a bug in the pgsql data layer. The sql used to lookup the userguid from the windows live id was incorrect. I have fixed it, if you get the latest code from the repository it should be fixed for you.

Thanks for the bug report!

Best,

Joe

8/9/2010 7:27:09 PM
Gravatar
Total Posts 70

Re: Windows Live Authentication "strange behavior"

Thanks Joe !! Very fast fixes (as usual) !!!

You must sign in to post in the forums. This thread is closed to new posts.