Merge pull request #1 from opf/feature/integrate-op-plugins-plugin

Remove obsolete openproject-plugins dependency
pull/6827/head
ulferts 10 years ago
commit 28989bbe35
  1. 8
      README.md
  2. 2
      lib/open_project/auth_plugins/engine.rb
  3. 1
      openproject-auth_plugins.gemspec

@ -2,18 +2,12 @@
Adds support for easy integration of OmniAuth strategy providers as a means to authenticate users in OpenProject. 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 ## Usage
gem 'openproject-auth_plugins', :git => 'git@github.com:finnlabs/openproject-auth_plugins', :branch => 'stable' 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. 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. 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. Find your Engine class in `engine.rb`, let it extend `OpenProject::Plugin::AuthPlugin` and register the providers you want to use.

@ -27,8 +27,6 @@
# See doc/COPYRIGHT.rdoc for more details. # 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' require 'open_project/plugins'
module OpenProject::AuthPlugins module OpenProject::AuthPlugins

@ -16,7 +16,6 @@ Gem::Specification.new do |s|
s.files = Dir["{app,config,db,lib}/**/*"] + %w(doc/CHANGELOG.md README.md) s.files = Dir["{app,config,db,lib}/**/*"] + %w(doc/CHANGELOG.md README.md)
s.add_dependency "rails", "~> 3.2.14" s.add_dependency "rails", "~> 3.2.14"
s.add_dependency "openproject-plugins", "~> 4.0"
s.add_dependency "omniauth", "~> 1.0" s.add_dependency "omniauth", "~> 1.0"
s.add_development_dependency "rspec", "~> 2.14" s.add_development_dependency "rspec", "~> 2.14"

Loading…
Cancel
Save