Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No redirect after enabling the plugin #1

Closed
ToniIltanen opened this issue Nov 6, 2017 · 6 comments
Closed

No redirect after enabling the plugin #1

ToniIltanen opened this issue Nov 6, 2017 · 6 comments

Comments

@ToniIltanen
Copy link
Contributor

ToniIltanen commented Nov 6, 2017

After installing and set the plugin settings and enabling it, the redmine's normal login screen is shown when logging in, the plugin does not forward the call to the openid connect provider instead.

@triplem
Copy link
Contributor

triplem commented Nov 7, 2017

Could you provide some detailed information, on the settings you provided? The Config is enabled?

Do you have access to the logs?

@ToniIltanen
Copy link
Contributor Author

ToniIltanen commented Nov 7, 2017

yeah, the config is enabled. Should the redirect happen from an custom url, or directly from the normal login page?

I am using a panva oidc provider (https://github.com/panva/node-oidc-provider) as the actual SSO provider for openid connect (which we use in our application set as the openid connect SSO)

/oic/login url (found this from the routes) tries to do something, but returns an error, which shows in the logs:

Started GET "/oic/login" for 83.145.195.18 at 2017-11-07 16:52:42 +0000
Processing by AccountController#oic_login as HTML
  Current user: anonymous
Completed 500 Internal Server Error in 244ms (ActiveRecord: 230.8ms)

NoMethodError (undefined method `+' for nil:NilClass):
  plugins/redmine_openid_connect/app/models/oic_session.rb:32:in `openid_configuration_url'
  plugins/redmine_openid_connect/app/models/oic_session.rb:40:in `block in get_dynamic_config'
  plugins/redmine_openid_connect/app/models/oic_session.rb:38:in `get_dynamic_config'
  plugins/redmine_openid_connect/app/models/oic_session.rb:45:in `dynamic_config'
  plugins/redmine_openid_connect/app/models/oic_session.rb:49:in `dynamic_config'
  plugins/redmine_openid_connect/app/models/oic_session.rb:152:in `authorization_url'
  plugins/redmine_openid_connect/lib/redmine_openid_connect/account_controller_patch.rb:61:in `oic_login'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

picture from the config:

nayttokuva 2017-11-07 kello 18 54 22

@triplem
Copy link
Contributor

triplem commented Nov 8, 2017

Uh, I will need to check this one. Hope to get it fixed.

@triplem
Copy link
Contributor

triplem commented Nov 8, 2017

Looks like a problem with variable assignments (using names instead of symbols). Just trying this now. Will be (most probably) some changes required.

@triplem
Copy link
Contributor

triplem commented Nov 9, 2017

0.9.3 should fix this issue, could you please confirm?

@ToniIltanen
Copy link
Contributor Author

Redirect works now, thanks!
I'll start testing this plugin for furthermore now, i'll keep in touch if more issues comes along.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants