Closed cmfcmf closed 7 years ago
That's weird because it works on heroku. Did you set up your openID Account correctly?
For me it doesn't work on Heroku either. We tried it with @aloeser account as well and got the same error:
Okay, since this error was tied to a wrong configuration on the openID provider site I'd suggest to merge this for now and make a separate issue (#664) for an explanation along with a proper error message @corinnaj @aloeser ?
2017-06-20T12:15:58.220488+00:00 app[web.1]: Completed 500 Internal Server Error in 4ms (ActiveRecord: 1.0ms)
2017-06-20T12:15:58.232738+00:00 app[web.1]:
2017-06-20T12:15:58.232740+00:00 app[web.1]: ActiveRecord::StatementInvalid (PG::UndefinedColumn: ERROR: column users.provider does not exist
2017-06-20T12:15:58.232740+00:00 app[web.1]: LINE 1: SELECT "users".* FROM "users" WHERE "users"."provider" = 'h...
2017-06-20T12:15:58.232741+00:00 app[web.1]: ^
2017-06-20T12:15:58.232742+00:00 app[web.1]: : SELECT "users".* FROM "users" WHERE "users"."provider" = 'hpiopenid' AND "users"."uid" = 'https://openid.hpi.uni-potsdam.de/user/bjarne.sievers' ORDER BY "users"."id" ASC LIMIT 1):
2017-06-20T12:15:58.232742+00:00 app[web.1]: app/models/user.rb:49:in `from_omniauth'
2017-06-20T12:15:58.232743+00:00 app[web.1]: app/controllers/users/omniauth_callbacks_controller.rb:5:in `hpiopenid'
2017-06-20T12:15:58.232743+00:00 app[web.1]:
2017-06-20T12:15:58.232744+00:00 app[web.1]:
2017-06-20T12:15:58.233226+00:00 heroku[router]: at=info method=GET path="/users/auth/hpiopenid/callback?_method=post&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.op_endpoint=https%3A%2F%2...
This is part of #637.
All HPI users are automatically promoted to coaches. We still use Devise, which has support for OmniAuth. The link to login is located here:
Further providers could be added, but I thought HPI OpenID was most important to begin with.