mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 00:53:26 +02:00
Email domain restriction added for OAuth2 authorization.
This commit is contained in:
@@ -54,6 +54,12 @@ module.exports.builder = function(yargs) {
|
||||
, default: process.env.OAUTH_SCOPE
|
||||
, demand: true
|
||||
})
|
||||
.option('oauth-domain', {
|
||||
describe: 'Optional email domain to allow authentication for.'
|
||||
, type: 'string'
|
||||
, default: process.env.OAUTH_DOMAIN
|
||||
, demand: false
|
||||
})
|
||||
.option('port', {
|
||||
alias: 'p'
|
||||
, describe: 'The port to bind to.'
|
||||
@@ -89,6 +95,7 @@ module.exports.handler = function(argv) {
|
||||
, secret: argv.secret
|
||||
, ssid: argv.ssid
|
||||
, appUrl: argv.appUrl
|
||||
, domain: argv.oauthDomain
|
||||
, oauth: {
|
||||
authorizationURL: argv.oauthAuthorizationUrl
|
||||
, tokenURL: argv.oauthTokenUrl
|
||||
|
||||
Reference in New Issue
Block a user