1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

[WIP] Basic LDAP connectivity

This commit is contained in:
sauls8t 2018-08-28 10:19:22 +01:00
parent f28b7497fa
commit 8d3dfcc3c7
72 changed files with 5039 additions and 3548 deletions

View file

@ -11,8 +11,8 @@
import { Promise as EmberPromise } from 'rsvp';
import { inject as service } from '@ember/service';
import Route from '@ember/routing/route';
import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';
import Route from '@ember/routing/route';
export default Route.extend(AuthenticatedRouteMixin, {
appMeta: service(),
@ -31,6 +31,18 @@ export default Route.extend(AuthenticatedRouteMixin, {
authConfig: null,
};
// TEST
// TEST
// TEST
// TEST
// TEST
this.get('global').syncLDAP().then(() => {});
// TEST
// TEST
// TEST
// TEST
// TEST
return new EmberPromise((resolve) => {
let constants = this.get('constants');
@ -39,6 +51,9 @@ export default Route.extend(AuthenticatedRouteMixin, {
case constants.AuthProvider.Keycloak:
data.authConfig = config;
break;
case constants.AuthProvider.LDAP:
data.authConfig = config;
break;
case constants.AuthProvider.Documize:
data.authConfig = '';
break;