SAML feature by special link

Allows for testing SAML linking before release

GitOrigin-RevId: 8a8c01aa15f04ba1749e93f4feadb7bf1643c783
This commit is contained in:
Jessica Lawshe 2019-10-07 11:48:43 -05:00 committed by sharelatex
parent bf42f6c5b5
commit ae423b5800
2 changed files with 6 additions and 3 deletions

View file

@ -22,7 +22,8 @@ const UserPagesController = {
title: 'register',
sharedProjectData,
newTemplateData,
new_email: req.query.new_email || ''
new_email: req.query.new_email || '',
samlBeta: req.session.samlBeta
})
},
@ -79,7 +80,8 @@ const UserPagesController = {
}
res.render('user/login', {
title: 'login',
email: req.query.email
email: req.query.email,
samlBeta: req.session.samlBeta
})
},
@ -145,6 +147,7 @@ const UserPagesController = {
samlInitPath: _.get(Settings, ['saml', 'ukamf', 'initPath']),
institutionLinked,
institutionNotLinked,
samlBeta: req.session.samlBeta,
ssoError: ssoError,
thirdPartyIds: UserPagesController._restructureThirdPartyIds(user)
})

View file

@ -92,7 +92,7 @@ form.row(
i.fa.fa-fw.fa-trash(aria-hidden="true")
span.sr-only #{translate("remove")}
tr.affiliations-table-saml-row(ng-repeat-end ng-if="userEmail.affiliation && userEmail.affiliation && userEmail.affiliation.institution.ssoEnabled")
if hasFeature('saml')
if hasFeature('saml') || samlBeta
td
td(ng-attr-colspan="{{userEmail.samlProviderId ? '2' : '1'}}" ng-class="institutionAlreadyLinked(userEmail) ? '' : 'with-border'")
p.small(ng-if="userEmail.samlProviderId")