-
Notifications
You must be signed in to change notification settings - Fork 796
Closed
Description
I've been having a couple minor issues with some users that get confused with the disabled Username/Password login method. We use a SSO for pgAdmin so the user has to click on the bottom button instead of writing their email and password.
This is a question. Is it possible to automatically start OAuth2 when the user hits the homepage or is it impossible.
If it's not possible then perhaps we could do somethings like the following in the login_user.html.
{% if not (config.OAUTH2 in config.AUTHENTICATION_SOURCES or config.KERBEROS in config.AUTHENTICATION_SOURCES) and config.AUTHENTICATION_SOURCES | length == 1 %}
{{ render_username_with_errors(login_user_form.email, "text") }}
{{ render_field_with_errors(login_user_form.password, "password") }}
<button name="internal_button" class="btn btn-primary btn-block btn-login" type="submit" value="{{ _('Login') }}">{{ _('Login') }}</button>
{% endif %}