Mercurial > prosody-modules
comparison mod_http_oauth2/mod_http_oauth2.lua @ 5258:9629971e307f
mod_http_oauth2: Fix userinfo status code off-by-one
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 16 Mar 2023 19:59:32 +0100 |
| parents | b2120fb4a279 |
| children | 8fba651b10ef |
comparison
equal
deleted
inserted
replaced
| 5257:b2120fb4a279 | 5258:9629971e307f |
|---|---|
| 721 sub = url.build({ scheme = "xmpp"; path = token_info.jid }); | 721 sub = url.build({ scheme = "xmpp"; path = token_info.jid }); |
| 722 -- Additional UserInfo fields could be pulled from vcard4, depending on | 722 -- Additional UserInfo fields could be pulled from vcard4, depending on |
| 723 -- permissions and scopes granted. | 723 -- permissions and scopes granted. |
| 724 } | 724 } |
| 725 return { | 725 return { |
| 726 status_code = 201; | 726 status_code = 200; |
| 727 headers = { content_type = "application/json" }; | 727 headers = { content_type = "application/json" }; |
| 728 body = json.encode(user_info); | 728 body = json.encode(user_info); |
| 729 }; | 729 }; |
| 730 end | 730 end |
| 731 | 731 |
