mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
Email domain restriction added for OAuth2 authorization.
This commit is contained in:
parent
79aadbb090
commit
8b9ff7e580
2 changed files with 21 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue