Mercurial > prosody-modules
comparison mod_http_oauth2/mod_http_oauth2.lua @ 4265:7b4a73364363
mod_http_oauth2: Add TODO
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 22 Nov 2020 01:55:42 +0100 |
parents | d3af5f94d6df |
children | 143515d0b212 |
comparison
equal
deleted
inserted
replaced
4264:84bdf7e01744 | 4265:7b4a73364363 |
---|---|
194 end | 194 end |
195 local user = check_credentials(request); | 195 local user = check_credentials(request); |
196 if not user then | 196 if not user then |
197 return 401; | 197 return 401; |
198 end | 198 end |
199 -- TODO ask user for consent here | |
199 if not request.url.query then | 200 if not request.url.query then |
200 response.headers.content_type = "application/json"; | 201 response.headers.content_type = "application/json"; |
201 return oauth_error("invalid_request"); | 202 return oauth_error("invalid_request"); |
202 end | 203 end |
203 local params = http.formdecode(request.url.query); | 204 local params = http.formdecode(request.url.query); |