From 0381f91bbe56793fdaf0ad54ed8d554c1d19d6d0 Mon Sep 17 00:00:00 2001 From: Nick Shearer Date: Mon, 23 Jul 2018 18:20:46 -0500 Subject: [PATCH] Add site setting to allow full screen login --- config/locales/server.en.yml | 2 +- config/settings.yml | 3 +++ plugin.rb | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 1d9a88a..0c22522 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -19,4 +19,4 @@ en: oauth2_authorize_options: "When authorizing request these options" oauth2_scope: "When authorizing request this scope" oauth2_button_title: "The text for the OAuth2 button" - + oauth2_full_screen_login: "Use main browser window instead of popup for login" diff --git a/config/settings.yml b/config/settings.yml index 29f27d8..cf3ab85 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -34,3 +34,6 @@ login: oauth2_button_title: default: 'with OAuth2' client: true + oauth2_full_screen_login: + default: false + client: true diff --git a/plugin.rb b/plugin.rb index e7dfe70..f5c4c00 100644 --- a/plugin.rb +++ b/plugin.rb @@ -149,7 +149,9 @@ end auth_provider title_setting: "oauth2_button_title", enabled_setting: "oauth2_enabled", authenticator: OAuth2BasicAuthenticator.new('oauth2_basic'), - message: "OAuth2" + message: "OAuth2", + full_screen_login_setting: "oauth2_full_screen_login" + register_css <