@@ -128,25 +128,27 @@ Authorizes a token request.
128
128
129
129
**Arguments: **
130
130
131
- +-----------------------------------------+-----------------+-----------------------------------------------------------------------------+
132
- | Name | Type | Description |
133
- +=========================================+=================+=============================================================================+
134
- | request | :doc: `request ` | Request object. |
135
- +-----------------------------------------+-----------------+-----------------------------------------------------------------------------+
136
- | [request.query.allowed=undefined] | String | ``'false' `` to deny the authorization request (see remarks section). |
137
- +-----------------------------------------+-----------------+-----------------------------------------------------------------------------+
138
- | response | :doc: `response ` | Response object. |
139
- +-----------------------------------------+-----------------+-----------------------------------------------------------------------------+
140
- | [options={}] | Object | Handler options. |
141
- +-----------------------------------------+-----------------+-----------------------------------------------------------------------------+
142
- | [options.authenticateHandler=undefined] | Object | The authenticate handler (see remarks section). |
143
- +-----------------------------------------+-----------------+-----------------------------------------------------------------------------+
144
- | [options.allowEmptyState=false] | Boolean | Allow clients to specify an empty ``state ``. |
145
- +-----------------------------------------+-----------------+-----------------------------------------------------------------------------+
146
- | [options.authorizationCodeLifetime=300] | Number | Lifetime of generated authorization codes in seconds (default = 5 minutes). |
147
- +-----------------------------------------+-----------------+-----------------------------------------------------------------------------+
148
- | [callback=undefined] | Function | Node-style callback to be used instead of the returned ``Promise ``. |
149
- +-----------------------------------------+-----------------+-----------------------------------------------------------------------------+
131
+ +-----------------------------------------+-----------------+--------------------------------------------------------------------------------+
132
+ | Name | Type | Description |
133
+ +=========================================+=================+================================================================================+
134
+ | request | :doc: `request ` | Request object. |
135
+ +-----------------------------------------+-----------------+--------------------------------------------------------------------------------+
136
+ | [request.query.allowed=undefined] | String | ``'false' `` to deny the authorization request (see remarks section). |
137
+ +-----------------------------------------+-----------------+--------------------------------------------------------------------------------+
138
+ | response | :doc: `response ` | Response object. |
139
+ +-----------------------------------------+-----------------+--------------------------------------------------------------------------------+
140
+ | [options={}] | Object | Handler options. |
141
+ +-----------------------------------------+-----------------+--------------------------------------------------------------------------------+
142
+ | [options.authenticateHandler=undefined] | Object | The authenticate handler (see remarks section). |
143
+ +-----------------------------------------+-----------------+--------------------------------------------------------------------------------+
144
+ | [options.allowEmptyState=false] | Boolean | Allow clients to specify an empty ``state ``. |
145
+ +-----------------------------------------+-----------------+--------------------------------------------------------------------------------+
146
+ | [options.authorizationCodeLifetime=300] | Number | Lifetime of generated authorization codes in seconds (default = 5 minutes). |
147
+ +-----------------------------------------+-----------------+--------------------------------------------------------------------------------+
148
+ | [options.accessTokenLifetime=3600] | Number | Lifetime of generated implicit grant access token in seconds (default = 1 hr). |
149
+ +-----------------------------------------+-----------------+--------------------------------------------------------------------------------+
150
+ | [callback=undefined] | Function | Node-style callback to be used instead of the returned ``Promise ``. |
151
+ +-----------------------------------------+-----------------+--------------------------------------------------------------------------------+
150
152
151
153
**Return value: **
152
154
0 commit comments