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:
parent
4c2da1056d
commit
f942c86aaf
2 changed files with 96 additions and 95 deletions
13
lib/cli.js
13
lib/cli.js
|
@ -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
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue