Mercurial > prosody-modules
comparison mod_http_oauth2/mod_http_oauth2.lua @ 5514:61b8d3eb91a4
mod_http_oauth2: Revert strict form check to allow consent of multiple scopes
Untested commit breaks everything, news at 11
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 02 Jun 2023 11:20:08 +0200 |
parents | 0005d4201030 |
children | d87d0e4a8516 |
comparison
equal
deleted
inserted
replaced
5513:0005d4201030 | 5514:61b8d3eb91a4 |
---|---|
549 local function get_auth_state(request) | 549 local function get_auth_state(request) |
550 local form = request.method == "POST" | 550 local form = request.method == "POST" |
551 and request.body | 551 and request.body |
552 and request.body ~= "" | 552 and request.body ~= "" |
553 and request.headers.content_type == "application/x-www-form-urlencoded" | 553 and request.headers.content_type == "application/x-www-form-urlencoded" |
554 and strict_formdecode(request.body); | 554 and http.formdecode(request.body); |
555 | 555 |
556 if type(form) ~= "table" then return {}; end | 556 if type(form) ~= "table" then return {}; end |
557 | 557 |
558 if not form.user_token then | 558 if not form.user_token then |
559 -- First step: login | 559 -- First step: login |