1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 19:42:01 +02:00

Support OAuth2 state tokens.

This commit is contained in:
Simo Kinnunen 2018-07-14 11:06:15 +08:00
parent 07abb867be
commit 97633327bb
2 changed files with 12 additions and 0 deletions

View file

@ -1,5 +1,11 @@
# Changelog
## HEAD
### Enhancements
- The OAuth2 unit now supports state tokens. Thanks @quangola!
## 3.3.1 (2018-07-14)
### Fixes

View file

@ -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
}
})
}