Mercurial > prosody-modules
view mod_limits_exception/mod_limits_exception.lua @ 5223:8b2a36847912
mod_http_oauth2: Support HTTP Basic auth on token endpoint
This is described in RFC 6749 section 2.3.1 and draft-ietf-oauth-v2-1-07 2.3.1
as the recommended way to transmit the client's credentials.
The older spec even calls it the "client password", but the new spec clarifies
that this is just another term for the client secret.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 07 Mar 2023 15:27:50 +0000 |
parents | 28c16c93d79a |
children |
line wrap: on
line source
local unlimited_jids = module:get_option_inherited_set("unlimited_jids", {}); if unlimited_jids:empty() then return; end module:hook("authentication-success", function (event) local session = event.session; local jid = session.username .. "@" .. session.host; if unlimited_jids:contains(jid) then if session.conn and session.conn.setlimit then session.conn:setlimit(0); elseif session.throttle then session.throttle = nil; end end end);