diff options
author | alecdwm | 2016-12-13 22:31:35 +0100 |
---|---|---|
committer | alecdwm | 2016-12-13 22:41:07 +0100 |
commit | 02e99277146d8bd912f2f19af1d3e94a6181d90d (patch) | |
tree | 01140b215f4defc46ec28f599d27ebe31dbf2915 /public/views/signin-modal.ejs | |
parent | 8095f8cc983bbed532db7eee9f7f5a64e910b731 (diff) |
Initial support for LDAP server authentication
Limitations as of this commit:
- tlsOptions can only be specified in config.json, not as env vars
- authentication failures are not yet gracefully handled by the UI
- instead the error message is shown on a blank page (/auth/ldap)
- no email address is associated with the LDAP user's account
- no picture/profile URL is associated with the LDAP user's account
- we might have to generate our own access + refresh tokens,
because we aren't using oauth. The currently generated
tokens are just a placeholder.
- 'LDAP Sign in' needs to be translated to each locale
Diffstat (limited to 'public/views/signin-modal.ejs')
-rw-r--r-- | public/views/signin-modal.ejs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/public/views/signin-modal.ejs b/public/views/signin-modal.ejs index acbad256..ba6c57ff 100644 --- a/public/views/signin-modal.ejs +++ b/public/views/signin-modal.ejs @@ -38,7 +38,13 @@ <i class="fa fa-google"></i> <%= __('Sign in via %s', 'Google') %> </a> <% } %> - <% if((facebook || twitter || github || gitlab || dropbox || google) && email) { %> + <% if(ldap) { %> + <a type="button" class="btn btn-lg btn-block btn-social btn-reddit "data-toggle="modal" data-target=".signin-ldap-modal"> + <i class="fa fa-book"></i> <%= __('Sign in via %s', 'LDAP') %> + </a> + <% } %> + + <% if((facebook || twitter || github || gitlab || dropbox || google || ldap) && email) { %> <hr> <% }%> <% if(email) { %> @@ -67,4 +73,4 @@ </div> </div> </div> -</div>
\ No newline at end of file +</div> |