mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 23:53:18 +02:00
Support OAuth2 state tokens.
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
# Changelog
|
||||
|
||||
## HEAD
|
||||
|
||||
### Enhancements
|
||||
|
||||
- The OAuth2 unit now supports state tokens. Thanks @quangola!
|
||||
|
||||
## 3.3.1 (2018-07-14)
|
||||
|
||||
### Fixes
|
||||
|
||||
@@ -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