Add option to control SAML callback

This commit is contained in:
Piotr Orzechowski
2018-03-07 11:17:59 +01:00
parent e9d03aeac3
commit 31f53dc220
2 changed files with 19 additions and 2 deletions

View File

@@ -35,6 +35,12 @@ module.exports.builder = function(yargs) {
, type: 'string'
, default: process.env.SAML_ID_PROVIDER_CERT_PATH
})
.option('saml-id-provider-callback-url', {
describe: 'SAML 2.0 identity provider callback URL ' +
'in the form of scheme://host[:port]/auth/saml/callback.'
, type: 'string'
, default: process.env.SAML_ID_PROVIDER_CALLBACK_URL
})
.option('secret', {
alias: 's'
, describe: 'The secret to use for auth JSON Web Tokens. Anyone who ' +
@@ -68,6 +74,7 @@ module.exports.handler = function(argv) {
entryPoint: argv.samlIdProviderEntryPointUrl
, issuer: argv.samlIdProviderIssuer
, certPath: argv.samlIdProviderCertPath
, callbackUrl: argv.samlIdProviderCallbackUrl
}
})
}