1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-30 02:29: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

@ -41,6 +41,13 @@ export default Route.extend({
});
break;
case constants.AuthProvider.CAS: {
let config = JSON.parse(this.get('appMeta.authConfig'));
let url = config.url + '/login?service=' + encodeURIComponent(config.redirectUrl);
window.location.replace(url);
resolve();
break;
}
default:
this.set('showLogin', true);