Open tommygod3 opened 5 years ago
Error goes from:
where the true error is obscured, to:
where the true error can be seen.
The error that can be seen in the second image seems to be a problem with the authomatic library by the way, not with Phoenix. https://github.com/authomatic/authomatic/issues/199
Since authomatic
is not so well maintained we might skip it and move to oauthlib only, maybe together with pyramid-oauthlib. We would have logins for CEDA/ESGF, github, google, ...
Sounds like a good solution to me.
would you like to give it a try?
Yeah I can give it a try, removing authomatic
and consequently OpenID, and instead using oauthlib
sounds good. I will develop these changes in cedadev/pyramid-phoenix so I can collaborate with @watucker
@cehbrecht Unfortunately my last day on placement is tomorrow and I never had the time to look at doing this
The exception caught by: https://github.com/bird-house/pyramid-phoenix/blob/5c5a4f73778c31abdee13ce004dd651b43f24247/phoenix/account/base.py#L171 doesn't always have a .message attribute. Using
str(result.error)
works will all exceptions.