forked from devopskube/redmine_openid_connect
-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.rb
20 lines (17 loc) · 926 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'redmine'
require_relative 'lib/redmine_openid_connect/application_controller_patch'
require_relative 'lib/redmine_openid_connect/account_controller_patch'
require_relative 'lib/redmine_openid_connect/users_controller_patch'
require_relative 'lib/redmine_openid_connect/hooks'
Redmine::Plugin.register :redmine_openid_connect do
name 'Redmine Openid Connect plugin'
author 'Alfonso Juan Dillera / Markus M. May'
description 'OpenID Connect implementation for Redmine'
version '0.9.4'
url 'https://github.com/devopskube/redmine_openid_connect'
author_url 'http://github.com/adillera'
settings :default => { 'empty' => true }, partial: 'settings/redmine_openid_connect_settings'
end
ApplicationController.prepend(RedmineOpenidConnect::ApplicationControllerPatch)
AccountController.prepend(RedmineOpenidConnect::AccountControllerPatch)
UsersController.prepend(RedmineOpenidConnect::UsersControllerPatch)