mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:13:31 +02:00
format auth-openid options
This commit is contained in:
committed by
Vishal Banthia
parent
4c2da1056d
commit
f942c86aaf
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
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user