mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 12:53:21 +02:00
Support custom auth URLs in stf local and map oauth2 to the correct URL by default.
This commit is contained in:
@@ -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/'
|
||||
|
||||
Reference in New Issue
Block a user