OpenId Issues

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.
4/13/2011 12:07:50 PM
Gravatar
Total Posts 8

OpenId Issues

I have set Mojoportal up in my domain a couple months ago and a few days ago I enabled OpenId authentication. I've already set everything up in Jainrain and in my site, but I'm having trouble signing in. When I try to sign in, the page just refreshes and I'm not authenticathed. In the sign in page, where it shows the OpenId widget, the widget itself says I'm authenticated, but my site does not think so.

I'm running in a full trust environment, with all settings as said in the Mojoportal documentation. I have also searched the forums and found someone with a problem similar to mine, but the solution seemed to involve a custom package.

Help?

4/13/2011 12:13:12 PM
Gravatar
Total Posts 8

Re: OpenId Issues

By the way, I'm running on version 2.3.5.1. Would that be the cause?

4/13/2011 12:15:59 PM
Gravatar
Total Posts 18439

Re: OpenId Issues

My first suggestion would be to upgrade and see if the problem persists.

Best,

Joe

4/13/2011 12:21:25 PM
Gravatar
Total Posts 8

Re: OpenId Issues

Thanks, Joe. I'll try that later today :)

4/13/2011 10:23:45 PM
Gravatar
Total Posts 8

Re: OpenId Issues

So I upgraded to the latest .NET 3.5 version, using MSSQL. I see a lot of improvement in some features :) but still no luck with openId :(

The widget still behaves the same - it tells me that I'm authenticated - but the site still doesn't recognize me. And I also noticed that the openId tab looks different from the one in the instructions, there's no textbox for me to fill with the selector code. Also, I don't know what URL my site is using for callbacks, or where I could set it.

 

Help?

4/13/2011 10:44:38 PM
Gravatar
Total Posts 8

Re: OpenId Issues

By the way, every time I try to sign in, the log gets an error like this:

2011-04-13 20:39:17,556 ERROR mojoPortal.Web.PageNotFoundHttpModule - 186.213.26.238  PageNotFoundHttpModule handled error.
System.Web.HttpException: The file '/404.aspx' does not exist.
   at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
   at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
   at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

So I think I'm missing a callback URL. What do you think?

4/13/2011 11:06:21 PM
Gravatar
Total Posts 8

Re: OpenId Issues

Ok, finally found out what the problem was. I had turned off user registration. Thus, anyone not already registered was unable to login with OpenId. Turning user registration back on enabled it.

I think it should be documented somewhere.

Still, nice work with OpenId! Nicest feature in mojoPortal, ever!

4/14/2011 10:25:22 AM
Gravatar
Total Posts 18439

Re: OpenId Issues

 

The way it works is the the RPX/JanRain service only does authentication nothing more nothing less so it does not know an already registered user of your site from a new user and they set their cookie on their end that indicates the user is signed in, but if it is not an existing user on our end and registration is disabled then we don't create a user and we don't set our cookie.
 
When registration is disabled we don't show the RPX widget on the registration page, but there is really no difference from the point of view of the RPX service whether the user clicks the widget on the login page or the registration page of our site, so a user could still click the widget on the login page when RPX is enabled but registration is disabled  and the RPX service will still log them in on their end. In fact if registration is enabled it doesn't matter whether a new user comes in via the login page or the registration page. But in any case if registration is disabled we don't let new users in on our side.
 
Hope it helps,
 
Joe
4/14/2011 10:31:16 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: OpenId Issues

I think it should be documented somewhere.

You're right, and we have now updated the Using OpenID page with this information. Thanks!

Jamie

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