diff --git a/README.md b/README.md index 7e33d8cc25..256ec44c6c 100644 --- a/README.md +++ b/README.md @@ -2,18 +2,12 @@ Adds support for easy integration of OmniAuth strategy providers as a means to authenticate users in OpenProject. -## Dependencies - -This plugin depends on the OpenProject Plugins plugin, so insert it into your `Gemfile.plugins` before the auth_plugins plugin itself: - - gem 'openproject-plugins', :git => 'git@github.com:opf/openproject-plugins.git', :branch => 'dev' - ## Usage gem 'openproject-auth_plugins', :git => 'git@github.com:finnlabs/openproject-auth_plugins', :branch => 'stable' You can use this plugin to make an authentication plugin out of an ordinary OpenProject plugin. -The first step is to [generate a new plugin](https://github.com/opf/openproject-plugins#generator) using the Plugins plugin. +The first step is to generate a new plugin. Once you have done that it only takes a few additions to make it an authentication plugin. Find your Engine class in `engine.rb`, let it extend `OpenProject::Plugin::AuthPlugin` and register the providers you want to use. diff --git a/lib/open_project/auth_plugins/engine.rb b/lib/open_project/auth_plugins/engine.rb index f4c4233aaa..59ef54a123 100644 --- a/lib/open_project/auth_plugins/engine.rb +++ b/lib/open_project/auth_plugins/engine.rb @@ -27,8 +27,6 @@ # See doc/COPYRIGHT.rdoc for more details. #++ -# PreventĀ load-order problems in case openproject-plugins is listed after a plugin in the Gemfile -# or not at all require 'open_project/plugins' module OpenProject::AuthPlugins diff --git a/openproject-auth_plugins.gemspec b/openproject-auth_plugins.gemspec index 7ffd6fbc8a..7ca76a3f7b 100644 --- a/openproject-auth_plugins.gemspec +++ b/openproject-auth_plugins.gemspec @@ -16,7 +16,6 @@ Gem::Specification.new do |s| s.files = Dir["{app,config,db,lib}/**/*"] + %w(doc/CHANGELOG.md README.md) s.add_dependency "rails", "~> 3.2.14" - s.add_dependency "openproject-plugins", "~> 4.0" s.add_dependency "omniauth", "~> 1.0" s.add_development_dependency "rspec", "~> 2.14"