twinslash / redmine_omniauth_google

This plugin is used to authenticate in redmine through Google.
http://www.redmine.org/plugins/redmine_omniauth_google
95 stars 103 forks source link

Client ID Secret values disappear after click apply button #49

Open aslancll opened 5 years ago

aslancll commented 5 years ago

I wanted to add my domains to the plugin. When I clicked the apply, client values disappeared. I re-create a new client ID and secret but can't save client values with or without available domain info.

Log-in w/ Google option disappeared from login page now.

fabiomedeiro commented 5 years ago

I am having the same issue

undying commented 4 years ago

Had the same problem. As a workaround you can update database to make it work again:

BEGIN;
UPDATE settings set value = '--- !ruby/hash-with-ivars:ActionController::Parameters
elements:
  client_id: "<your oauth id>"
  client_secret: "<your oauth secret>"
  allowed_domains: "domain1.com\r\ndomain2.net"
  oauth_authentification: ''true''
ivars:
  :@permitted: false' WHERE id = (SELECT id FROM settings WHERE name = 'plugin_redmine_omniauth_google');
COMMIT;