Skip to content

Commit

Permalink
Support custom auth URLs in stf local and map oauth2 to the correct…
Browse files Browse the repository at this point in the history
… URL by default.
  • Loading branch information
sorccu committed Jul 8, 2015
1 parent afa30ef commit 751fda6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/'
Expand Down

0 comments on commit 751fda6

Please sign in to comment.