プロジェクト

全般

プロフィール

Vote #64673

完了

Unable to register using OpenID

Admin Redmine さんが4年以上前に追加. 4年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Accounts / authentication_7
対象バージョン:
開始日:
2009/02/15
期日:
進捗率:

100%

予定工数:
category_id:
7
version_id:
6
issue_org_id:
2757
author_id:
1
assigned_to_id:
5
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Using r2476, assuming I have no redmine account:

  • on the login form, I enter my openid url
  • I'm redirected to my openid provider, I accept to access the site
  • I'm redirected to the redmine registration form (only the openid url is filled)
  • I fill the form (btw, why do I have to enter a password?)
  • I hit Submit
  • the registration is displayed with the login field empty and the error message "login can't be blank"
  • same error if I re-fill the login and re-submit

Full log is attached (openid url filtered).


journals

Jean-Philippe Lang wrote:
> Using r2476, assuming I have no redmine account:
>
> * on the login form, I enter my openid url
> * I'm redirected to my openid provider, I accept to access the site
> * I'm redirected to the redmine registration form (only the openid url is filled)

Looks like your OpenID provider doesn't send back the sreg information, which is required to setup the account. This is because Redmine requires a login (sreg 'nickname'), mail (sreg 'email'), firstname, and lastname (sreg 'fullname') in order to create a user. You can see my OpenID provider sends back the sreg so I was able to create a user account on the fly (second to the last request)

> * I fill the form (btw, why do I have to enter a password?)

Because Redmine requires a password :) If the user was able to be created on the fly, they get a random password (@User#random_password@) but since saving your user account failed the password wasn't set.

> * I hit Submit
> * the registration is displayed with the login field empty and the error message "login can't be blank"
> * same error if I re-fill the login and re-submit

This sounds like a problem with the register form itself. Let me do some more testing and see
--------------------------------------------------------------------------------
Last log used the wrong database, where I had an existing user account. This log shows the process for a new user that needs an Administrator to approve the account activation.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I figured out why it wasn't taking your login. @AccountController#open_id_authenticate@ was adding an auth_source_registration to the session which caused @AccountController#register@ to use the wrong codepath. It's fixed in r2483.
--------------------------------------------------------------------------------

Admin Redmine さんが4年以上前に更新

  • カテゴリAccounts / authentication_7 にセット
  • 対象バージョン0.9.0_6 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0