feat: optional oauth2 module nonce toggle
This commit is contained in:
		| @@ -19,7 +19,7 @@ module.exports = { | |||||||
|       callbackURL: conf.callbackURL, |       callbackURL: conf.callbackURL, | ||||||
|       passReqToCallback: true, |       passReqToCallback: true, | ||||||
|       scope: conf.scope, |       scope: conf.scope, | ||||||
|       state: true |       state: conf.enableCSRFProtection | ||||||
|     }, async (req, accessToken, refreshToken, profile, cb) => { |     }, async (req, accessToken, refreshToken, profile, cb) => { | ||||||
|       try { |       try { | ||||||
|         const user = await WIKI.models.users.processProfile({ |         const user = await WIKI.models.users.processProfile({ | ||||||
|   | |||||||
| @@ -70,3 +70,9 @@ props: | |||||||
|     title: Pass access token via GET query string to User Info Endpoint |     title: Pass access token via GET query string to User Info Endpoint | ||||||
|     hint: (optional) Pass the access token in an `access_token` parameter attached to the GET query string of the User Info Endpoint URL. Otherwise the access token will be passed in the Authorization header. |     hint: (optional) Pass the access token in an `access_token` parameter attached to the GET query string of the User Info Endpoint URL. Otherwise the access token will be passed in the Authorization header. | ||||||
|     order: 11 |     order: 11 | ||||||
|  |   enableCSRFProtection: | ||||||
|  |     type: Boolean | ||||||
|  |     default: true | ||||||
|  |     title: Enable CSRF protection | ||||||
|  |     hint: Pass a nonce state parameter during authentication to protect against CSRF attacks. | ||||||
|  |     order: 12 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user