mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 09:53:21 +02:00
add saml audience option and manage required options (#843)
Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
This commit is contained in:
@@ -34,16 +34,23 @@ module.exports.builder = function(yargs) {
|
||||
, default: process.env.SAML_ID_PROVIDER_ISSUER
|
||||
, demand: true
|
||||
})
|
||||
.option('saml-id-provider-audience', {
|
||||
describe: 'SAML 2.0 identity provider audience.'
|
||||
, type: 'string'
|
||||
, default: process.env.SAML_ID_PROVIDER_AUDIENCE
|
||||
})
|
||||
.option('saml-id-provider-cert-path', {
|
||||
describe: 'SAML 2.0 identity provider certificate file path.'
|
||||
, type: 'string'
|
||||
, default: process.env.SAML_ID_PROVIDER_CERT_PATH
|
||||
, demand: true
|
||||
})
|
||||
.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
|
||||
, demand: true
|
||||
})
|
||||
.option('saml-id-provider-want-assertions-signed', {
|
||||
describe: 'SAML 2.0 identity provider want assertions signed.'
|
||||
@@ -91,6 +98,7 @@ module.exports.handler = function(argv) {
|
||||
, callbackUrl: argv.samlIdProviderCallbackUrl
|
||||
, wantAssertionsSigned: argv.samlIdProviderWantAssertionsSigned
|
||||
, wantAuthnResponseSigned: argv.samlIdProviderWantAuthnResponseSigned
|
||||
, audience: argv.samlIdProviderAudience
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user