mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
Support custom auth URLs in stf local
and map oauth2 to the correct URL by default.
This commit is contained in:
parent
afa30eff71
commit
751fda6b30
1 changed files with 5 additions and 2 deletions
|
@ -826,6 +826,9 @@ program
|
|||
, 'auth type'
|
||||
, String
|
||||
, 'mock')
|
||||
.option('-a, --auth-url <url>'
|
||||
, 'URL to auth client'
|
||||
, String)
|
||||
.option('--auth-port <port>'
|
||||
, 'auth port'
|
||||
, Number
|
||||
|
@ -965,11 +968,11 @@ program
|
|||
'app'
|
||||
, '--port', options.appPort
|
||||
, '--secret', options.authSecret
|
||||
, '--auth-url', util.format(
|
||||
, '--auth-url', options.authUrl || util.format(
|
||||
'http://%s:%d/auth/%s/'
|
||||
, options.publicIp
|
||||
, options.poorxyPort
|
||||
, options.authType
|
||||
, ({oauth2: 'oauth'}[options.authType]) || options.authType
|
||||
)
|
||||
, '--websocket-url', util.format(
|
||||
'http://%s:%d/'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue