Skip to content

Commit

Permalink
[service][web-app] make saml cert required, because passport-saml now…
Browse files Browse the repository at this point in the history
… requires cert
  • Loading branch information
restjohn committed Oct 26, 2023
1 parent 0944f64 commit d6321f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions service/src/authentication/saml.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@ function configure(strategy) {
const options = {
path: `/auth/${strategy.name}/callback`,
entryPoint: strategy.settings.entryPoint,
cert: strategy.settings.cert,
issuer: strategy.settings.issuer
}

if (strategy.settings.cert) {
options.cert = strategy.settings.cert;
}
if (strategy.settings.privateCert) {
options.privateCert = strategy.settings.privateCert;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class AuthenticationCreateComponent implements OnInit {
oauth: ['clientSecret', 'clientID', 'authorizationURL', 'tokenURL', 'profileURL'],
openidconnect: ['clientSecret', 'clientID', 'issuer', 'authorizationURL', 'tokenURL', 'profileURL'],
ldap: ['url'],
saml: ['entryPoint']
saml: ['entryPoint', 'cert']
}

constructor(
Expand Down

0 comments on commit d6321f8

Please sign in to comment.