Ticket #1532 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Registration with OpenID has misleading error message

Reported by: dread Owned by:
Priority: major Milestone: ckan-sprint-2011-12-19
Component: ckan Keywords:
Cc: rgrp Repository: ckan
Theme: none

Description

The log-in page says "Login using Open ID" and gives instructions for signing up. YET this is only available to users who've already added openid to their account. If you have not done this and then sign-in via OpenID (which is successful from the OpenID end) then you are told "Login failed. Bad username or password." in a flash message.

Proposed solution (i don't know if this is possible):

  • When you log-in for the first time via OpenID, it doesn't actually log you in in CKAN. It just sends you to the 'Create User' page with the OpenID field pre-filled, and puts up a flash message "This OpenID account is not yet registered on thedatahub. Please complete your details.". This allows you to complete the registration and logs you in, and allows you to log-in directly with OpenID in the future.

Alternatives:

  • Just change the error message to be 'You need to register in CKAN first. Quote your OpenID in the registration form to use it in future.'
  • Remove OpenID altogether

Change History

comment:1 Changed 2 years ago by dread

  • Status changed from new to closed
  • Resolution set to fixed

I couldn't see a way to communicate the situation "OpenID authenticated, but doesn't match any CKAN user" from the repoze middleware to CKAN. So in [release-v1.5.1c 9e86c8b] I have provided extra instructions in the OpenID log-in screen, and in the log-in error message suggest what could have gone wrong.

This issue appeared in 1.5.1b and fixed in 1.5.1c in time for the 1.5.1 release.

comment:2 Changed 2 years ago by dread

  • Milestone set to current-ckan-sprint-2011-12-19
Note: See TracTickets for help on using tickets.