Coder Social home page Coder Social logo

redmine_impersonate's Introduction

Redmine Impersonate

Redmine plugin allowing administrators to securely login as any user with a single click.

Installation

Follow standard Redmine plugin installation procedure.

  • Move redmine_impersonate/ to $REDMINE/plugins/.

Configuration

This plugin has no settings. When installed, administrators will be able to temporarily login as other user by clicking "Impersonate" button in his profile and edit page. To stop impersonating, click "Cancel" next to impersonating message at the top.

Requirements

Since this program depend on another software, it was written with compatibility in mind to keep it functional across many version of software it uses.

redmine_impersonate's People

Contributors

antitoine avatar austinsuyoyo avatar csalom avatar eyewritecode avatar iwangjiaxiang avatar nounderline avatar sanak avatar thegcat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

redmine_impersonate's Issues

Error on exit: interaction with sudo plugin

Redmine 5.1.0 Debian 12 Postgres 16 PurpleMine2, plugin installs correctly and works correctly but if sudo plugin is installed https://github.com/AlphaNodes/redmine_sudo on exit impersonation mode error is returned

F, [2023-12-02T15:38:02.552605 #22286] FATAL -- :
NoMethodError (undefined method delete' for nil:NilClass): plugins/redmine_impersonate/app/controllers/impersonation_controller.rb:38:in destroy'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'

compatibility redmine 4.0

Hi, Thank you for this great plugin.
Tried on Redmine 4.0.2 and it doesn't work
Make a compatibility with Redmine 4.0.x please

Thank you in advance

Compatibility redmine 5.x

Hi thanks for the plugin, this is a great help when checking user privileges.
I tested an upgrade on a testsetup, and the plugin is not compatible with the new 5.0.0 release.

Would really appreciate if you could update the master to 5.x compatibility.

Sign in again

By clicking on the button "Impersonate".

The term of your session has expired. Please sign in again.

Redmine 3.3.0

Conflict with flatly light theme

Hi, therre is conflict with flatly light theme, after choose impersonate i have account of user which i select but cant click cancel/storno to ending impersonate, because that banner dont show(or is hidden).

the impersonate banner still showed up for admin user

ENV:

Redmine version: 4.1.0

DETAILS:

Hi, I have tested impersonate plugin perfectly with redmine default admin account. However, when I used a custom admin account my_admin, the impersonate banner would not dispear after clicking Cancel button and returning to current my_admin account.

Below is a table. I wish it could help you understand me.

Account What happened when impersonate a user What happened when cancel impersonating the user
default admin impersonate banner apeared impersonate banner disapeared
user my_admin with admin privilege impersonate banner apeared impersonate banner still apeared

Could you please fix this issue?

ActionController::RoutingError (uninitialized constant ImpersonationController

Hello,
I am using Redmine 3.4.3.devel.17016, Ruby 2.3.5, Rails 5.1.2 and when I try to impersonate, I always get this error in RM log:

Started POST "/admin/impersonation?user_id=3" for xxx.xxx.xxx.xxx at 2017-10-30 14:17:45 +0100

ActionController::RoutingError (uninitialized constant ImpersonationController
Did you mean?  ImportsController):

activesupport (5.1.2) lib/active_support/inflector/methods.rb:269:in `const_get'
activesupport (5.1.2) lib/active_support/inflector/methods.rb:269:in `block in constantize'
activesupport (5.1.2) lib/active_support/inflector/methods.rb:267:in `each'
activesupport (5.1.2) lib/active_support/inflector/methods.rb:267:in `inject'
activesupport (5.1.2) lib/active_support/inflector/methods.rb:267:in `constantize'
activesupport (5.1.2) lib/active_support/dependencies.rb:582:in `get'
activesupport (5.1.2) lib/active_support/dependencies.rb:613:in `constantize'
actionpack (5.1.2) lib/action_dispatch/http/request.rb:82:in `controller_class'
actionpack (5.1.2) lib/action_dispatch/routing/route_set.rb:43:in `controller'
actionpack (5.1.2) lib/action_dispatch/routing/route_set.rb:29:in `serve'
actionpack (5.1.2) lib/action_dispatch/journey/router.rb:46:in `block in serve'
actionpack (5.1.2) lib/action_dispatch/journey/router.rb:33:in `each'
actionpack (5.1.2) lib/action_dispatch/journey/router.rb:33:in `serve'
actionpack (5.1.2) lib/action_dispatch/routing/route_set.rb:832:in `call'
rack-openid (1.4.2) lib/rack/openid.rb:98:in `call'
request_store (1.0.5) lib/request_store/middleware.rb:9:in `call'
rack (2.0.3) lib/rack/etag.rb:25:in `call'
rack (2.0.3) lib/rack/conditional_get.rb:38:in `call'
rack (2.0.3) lib/rack/head.rb:12:in `call'
rack (2.0.3) lib/rack/session/abstract/id.rb:232:in `context'
rack (2.0.3) lib/rack/session/abstract/id.rb:226:in `call'
actionpack (5.1.2) lib/action_dispatch/middleware/cookies.rb:613:in `call'
actionpack (5.1.2) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
activesupport (5.1.2) lib/active_support/callbacks.rb:97:in `run_callbacks'
actionpack (5.1.2) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
actionpack (5.1.2) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
actionpack (5.1.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
railties (5.1.2) lib/rails/rack/logger.rb:36:in `call_app'
railties (5.1.2) lib/rails/rack/logger.rb:24:in `block in call'
activesupport (5.1.2) lib/active_support/tagged_logging.rb:69:in `block in tagged'
activesupport (5.1.2) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (5.1.2) lib/active_support/tagged_logging.rb:69:in `tagged'
railties (5.1.2) lib/rails/rack/logger.rb:24:in `call'
actionpack (5.1.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
actionpack (5.1.2) lib/action_dispatch/middleware/request_id.rb:25:in `call'
rack (2.0.3) lib/rack/method_override.rb:22:in `call'
rack (2.0.3) lib/rack/runtime.rb:22:in `call'
activesupport (5.1.2) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
actionpack (5.1.2) lib/action_dispatch/middleware/executor.rb:12:in `call'
actionpack (5.1.2) lib/action_dispatch/middleware/static.rb:125:in `call'
rack (2.0.3) lib/rack/content_length.rb:15:in `call'
rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
railties (5.1.2) lib/rails/engine.rb:522:in `call'
rack (2.0.3) lib/rack/handler/webrick.rb:86:in `service'
/usr/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
/usr/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
/usr/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread'

Thanks for any tips.

button not working

Hi;
When i try to use the plugin i had two issues:
1)translation missing: fr.button_impersonate
2)When i click i got this error:
Page not found

The page you were trying to access doesn't exist or has been removed.
Thank you for your help
Regards

Russian locales

Hello, I would like to thank you for your plugin. Below is the Russian translation for the plugin. I would like to ask you to add an icon before the button to more closely match the style of the Redmain. Thank you.

cat ./ru.yml 
ru:
  notice_impersonating_user: "Представляемся как %{user}"
  button_impersonate: "Представиться"

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.