Add site setting to allow full screen login

This commit is contained in:
Nick Shearer 2018-07-23 18:20:46 -05:00
parent b588b32bc9
commit 0381f91bbe
3 changed files with 7 additions and 2 deletions

View File

@ -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"

View File

@ -34,3 +34,6 @@ login:
oauth2_button_title:
default: 'with OAuth2'
client: true
oauth2_full_screen_login:
default: false
client: true

View File

@ -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 <<CSS