Giter Site home page Giter Site logo

redmine_remote_user_auth's People

Contributors

vitstradal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

redmine_remote_user_auth's Issues

skip_before_filter is deprecated

Hi,
as mentioned here, the usage of skip_before_filter is deprecated and should be avoided. So the following call doesn't work with the current Rails version.

skip_before_filter :check_if_login_required

Regarding this, I have a related question. Is this call necessary at all? The class AccountRemoteUserController is derived from AccountController where (its successor skip_before_action) is called, too:

https://github.com/redmine/redmine/blob/3aef7783423fc47a987bad6df060ad69a06221dc/app/controllers/account_controller.rb#L27

Sorry, I'm just using this plugin but don't have any Ruby skills...

nil user

I needed these changes in app/controllers/account_remote_user_controller.rb for the plugin to work. Otherwise I get

NoMethodError (undefined method `name' for nil:NilClass)

I also needed the 'l(...)'.

    unless user && user.active?
      flash.now[:error] = l(:notice_account_unknown_email)
      return
    end
    unless  user.auth_source.nil? || user.auth_source.name != 'RemoteUser'
      successful_authentication(user)
      return
    end
    flash.now[:error] = l(:user_auth_source_not_remote_user);
  end
end

Using redmine 2.2.4.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.