mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Adding SSO CAS to Wekan
This commit is contained in:
parent
05869792ad
commit
ee81775dc8
6 changed files with 24 additions and 0 deletions
|
@ -85,3 +85,4 @@ browser-policy
|
||||||
eluck:accounts-lockout
|
eluck:accounts-lockout
|
||||||
rzymek:fullcalendar
|
rzymek:fullcalendar
|
||||||
momentjs:moment@2.22.2
|
momentjs:moment@2.22.2
|
||||||
|
atoy40:accounts-cas
|
|
@ -9,6 +9,7 @@ aldeed:simple-schema@1.5.3
|
||||||
alethes:pages@1.8.6
|
alethes:pages@1.8.6
|
||||||
allow-deny@1.1.0
|
allow-deny@1.1.0
|
||||||
arillo:flow-router-helpers@0.5.2
|
arillo:flow-router-helpers@0.5.2
|
||||||
|
atoy40:accounts-cas@0.0.2
|
||||||
audit-argument-checks@1.0.7
|
audit-argument-checks@1.0.7
|
||||||
autoupdate@1.3.12
|
autoupdate@1.3.12
|
||||||
babel-compiler@6.24.7
|
babel-compiler@6.24.7
|
||||||
|
|
|
@ -17,6 +17,9 @@ template(name="userFormsLayout")
|
||||||
img(src="{{pathFor '/wekan-logo.png'}}" alt="Wekan")
|
img(src="{{pathFor '/wekan-logo.png'}}" alt="Wekan")
|
||||||
section.auth-dialog
|
section.auth-dialog
|
||||||
+Template.dynamic(template=content)
|
+Template.dynamic(template=content)
|
||||||
|
if isCas
|
||||||
|
.at-form
|
||||||
|
button#cas(class='at-btn submit' type='submit') {{casSignInLabel}}
|
||||||
div.at-form-lang
|
div.at-form-lang
|
||||||
select.select-lang.js-userform-set-language
|
select.select-lang.js-userform-set-language
|
||||||
each languages
|
each languages
|
||||||
|
|
|
@ -39,6 +39,16 @@ Template.userFormsLayout.helpers({
|
||||||
const curLang = T9n.getLanguage() || 'en';
|
const curLang = T9n.getLanguage() || 'en';
|
||||||
return t9nTag === curLang;
|
return t9nTag === curLang;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
isCas() {
|
||||||
|
return Meteor.settings.public &&
|
||||||
|
Meteor.settings.public.cas &&
|
||||||
|
Meteor.settings.public.cas.loginUrl
|
||||||
|
},
|
||||||
|
|
||||||
|
casSignInLabel() {
|
||||||
|
return TAPi18n.__('casSignIn', {}, T9n.getLanguage() || 'en');
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
Template.userFormsLayout.events({
|
Template.userFormsLayout.events({
|
||||||
|
@ -47,6 +57,13 @@ Template.userFormsLayout.events({
|
||||||
T9n.setLanguage(i18nTagToT9n(i18nTag));
|
T9n.setLanguage(i18nTagToT9n(i18nTag));
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
},
|
},
|
||||||
|
'click button#cas'() {
|
||||||
|
Meteor.loginWithCas(function() {
|
||||||
|
if (FlowRouter.getRouteName() == 'atSignIn') {
|
||||||
|
FlowRouter.go('/');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
Template.defaultLayout.events({
|
Template.defaultLayout.events({
|
||||||
|
|
|
@ -131,6 +131,7 @@
|
||||||
"cardMorePopup-title": "More",
|
"cardMorePopup-title": "More",
|
||||||
"cards": "Cards",
|
"cards": "Cards",
|
||||||
"cards-count": "Cards",
|
"cards-count": "Cards",
|
||||||
|
"casSignIn" : "Sign In with CAS",
|
||||||
"change": "Change",
|
"change": "Change",
|
||||||
"change-avatar": "Change Avatar",
|
"change-avatar": "Change Avatar",
|
||||||
"change-password": "Change Password",
|
"change-password": "Change Password",
|
||||||
|
|
1
settings.json
Normal file
1
settings.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{}
|
Loading…
Add table
Add a link
Reference in a new issue