chrodriguez / redmine_omniauth_saml

Plugins that adds SAML authentication support for "Redmine"
GNU General Public License v2.0
38 stars 57 forks source link

Can't create user on-the-fly #39

Open guedressel opened 6 years ago

guedressel commented 6 years ago

Running on Redmine 3.4.5 SAML user creation fails (though I never tested SAML on older versions):

...
Completed 500 Internal Server Error in 17ms (ActiveRecord: 1.9ms)

NoMethodError (undefined method `created_by_omniauth_saml=' for #<User:0x00007fa14e4c0170>):
  plugins/redmine_omniauth_saml/lib/redmine_omniauth_saml/user_patch.rb:13:in `find_or_create_from_omniauth'
  plugins/redmine_omniauth_saml/lib/redmine_omniauth_saml/account_controller_patch.rb:32:in `login_with_saml_callback'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'
...