1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-22 22:59:43 +02:00

auth with cas

This commit is contained in:
Derek Chen 2019-08-09 13:44:03 +08:00
parent 8c99977fc9
commit 8c2df6178d
150 changed files with 43682 additions and 24175 deletions

View file

@ -12,7 +12,6 @@
import { inject as service } from '@ember/service';
import AuthProvider from '../../../mixins/auth';
import Controller from '@ember/controller';
import {Promise as EmberPromise} from "rsvp";
export default Controller.extend(AuthProvider, {
appMeta: service('app-meta'),
@ -73,14 +72,6 @@ export default Controller.extend(AuthProvider, {
// this.set('invalidCredentials', true);
// });
// }
},
loginWithCAS(){
// let config = this.get('config');
let url = 'https://sso.bangdao-tech.com/sso/login?service=' + encodeURIComponent('https://duty.bangdao-tech.com/');
window.location.replace(url);
}
}