mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Support OAuth2 state tokens.
This commit is contained in:
@@ -54,6 +54,11 @@ module.exports.builder = function(yargs) {
|
||||
, default: process.env.OAUTH_SCOPE
|
||||
, demand: true
|
||||
})
|
||||
.option('oauth-state', {
|
||||
describe: 'Whether to enable OAuth 2.0 state token support.'
|
||||
, type: 'boolean'
|
||||
, default: true
|
||||
})
|
||||
.option('oauth-domain', {
|
||||
describe: 'Optional email domain to allow authentication for.'
|
||||
, type: 'string'
|
||||
@@ -104,6 +109,7 @@ module.exports.handler = function(argv) {
|
||||
, clientSecret: argv.oauthClientSecret
|
||||
, callbackURL: argv.oauthCallbackUrl
|
||||
, scope: argv.oauthScope.split(/\s+/)
|
||||
, state: argv.oauthState
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user