Zend Framework

Consumer::verify() could be more verbose.

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.5.3
  • Fix Version/s: 1.6.0
  • Component/s: Zend_OpenId
  • Labels:
    None
  • Fix Version Priority:
    Nice to Have

Description

Consumer::verify() can return false in 11 different places. It would easily be my favorite OpenID library if it returned an error code or threw an exception instead of just returning false. This would make implementing and debugging consumer/provider code much friendlier.

Activity

Hide
Steven Osborn added a comment -

I'm not sure how feasible it would be, but could verify possibly return Zend_Auth_Result?

Show
Steven Osborn added a comment - I'm not sure how feasible it would be, but could verify possibly return Zend_Auth_Result?
Hide
Luke Crouch added a comment -

it should also throw a Zend_OpenId_Exception in the places where it currently return false.

Show
Luke Crouch added a comment - it should also throw a Zend_OpenId_Exception in the places where it currently return false.
Hide
Dmitry Stogov added a comment -

Now Zend_OpenId_Consumer::getError() may return explanation in case of login(), check() or verify() failure.

Show
Dmitry Stogov added a comment - Now Zend_OpenId_Consumer::getError() may return explanation in case of login(), check() or verify() failure.
Hide
Wil Sinclair added a comment -

Updating for the 1.6.0 release.

Show
Wil Sinclair added a comment - Updating for the 1.6.0 release.

People

Vote (4)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
1d
Original Estimate - 1 day
Remaining:
1d
Remaining Estimate - 1 day
Logged:
Not Specified
Time Spent - Not Specified