1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 10:19:30 +02:00

format auth-openid options

This commit is contained in:
codeskyblue 2016-01-13 15:40:03 +08:00 committed by Vishal Banthia
parent 4c2da1056d
commit f942c86aaf
2 changed files with 96 additions and 95 deletions

View file

@ -587,12 +587,13 @@ program
.option('-a, --app-url <url>'
, 'URL to app'
, String)
.option('--identifier <identifier>'
, 'identifier'
, String)
.option('--openid-identifier-url <openidIdentifierUrl>'
, 'openidIdentifierUrl'
, String
, process.env.OPENID_IDENTIFIER_URL)
.action(function(options) {
if (!options.identifier) {
this.missingArgument('--identifier')
if (!options.openidIdentifierUrl) {
this.missingArgument('--openid-identifier-url')
}
if (!options.secret) {
this.missingArgument('--secret')
@ -605,7 +606,7 @@ program
port: options.port,
secret: options.secret,
appUrl: options.appUrl,
identifier: options.identifier
identifierUrl: options.openidIdentifierUrl
})
})