Skip to content
Snippets Groups Projects

OBS SSO implementation

Merged Andrej Shadura requested to merge wip/andrewsh/patch-queue/sso into wip/andrewsh/sso-base
Compare and
7 files
+ 56
1
Compare changes
  • Side-by-side
  • Inline

Files

@@ -6,7 +6,7 @@ class Webui::UserController < Webui::WebuiController
before_filter :require_login, :only => [:edit, :save, :notifications, :update_notifications, :index]
before_filter :require_admin, :only => [:edit, :delete, :lock, :confirm, :admin, :index]
skip_before_action :check_anonymous, only: [:do_login]
skip_before_action :check_anonymous, only: [:do_login, :sso, :login]
def index
@users = User.all_without_nobody
@@ -25,6 +25,7 @@ class Webui::UserController < Webui::WebuiController
end
def login
sso
end
def do_login
@@ -267,6 +268,13 @@ class Webui::UserController < Webui::WebuiController
redirect_to action: :notifications
end
def sso
@sso_methods = {}
CONFIG['sso_auth'].each do |name, options|
@sso_methods[name.to_sym] = options['description'] || OmniAuth::Utils.camelize(name)
end
end
protected
def list_users(prefix = nil, hash = nil)
Loading