Software / code / prosody-modules
Comparison
mod_http_oauth2/mod_http_oauth2.lua @ 6324:5dc4ec836ce2
mod_http_oauth2: Comment on origin of a constant URI
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 03 Jul 2025 15:34:57 +0200 |
| parent | 6323:4f9b42c53d0f |
| child | 6325:6ea80b73d8f2 |
comparison
equal
deleted
inserted
replaced
| 6323:4f9b42c53d0f | 6324:5dc4ec836ce2 |
|---|---|
| 280 | 280 |
| 281 -- Non-standard special redirect URI that has the AS show the authorization | 281 -- Non-standard special redirect URI that has the AS show the authorization |
| 282 -- code to the user for them to copy-paste into the client, which can then | 282 -- code to the user for them to copy-paste into the client, which can then |
| 283 -- continue as if it received it via redirect. | 283 -- continue as if it received it via redirect. |
| 284 local oob_uri = "urn:ietf:wg:oauth:2.0:oob"; | 284 local oob_uri = "urn:ietf:wg:oauth:2.0:oob"; |
| 285 | |
| 286 -- RFC 8628 OAuth 2.0 Device Authorization Grant | |
| 285 local device_uri = "urn:ietf:params:oauth:grant-type:device_code"; | 287 local device_uri = "urn:ietf:params:oauth:grant-type:device_code"; |
| 286 | 288 |
| 287 local loopbacks = set.new({ "localhost", "127.0.0.1", "::1" }); | 289 local loopbacks = set.new({ "localhost", "127.0.0.1", "::1" }); |
| 288 | 290 |
| 289 local function oauth_error(err_name, err_desc) | 291 local function oauth_error(err_name, err_desc) |