Software /
code /
prosody
Comparison
util/sasl.lua @ 12911:ab1164eda011
util.sasl: Add SASL OAUTHBEARER mechanism (RFC 7628)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 01 Mar 2023 12:55:00 +0000 |
parent | 12387:05c250fa335a |
child | 12975:d10957394a3c |
comparison
equal
deleted
inserted
replaced
12910:5c90862e39aa | 12911:ab1164eda011 |
---|---|
131 --if message == "" or message == nil then return "failure", "malformed-request" end | 131 --if message == "" or message == nil then return "failure", "malformed-request" end |
132 return registered_mechanisms[self.selected](self, message); | 132 return registered_mechanisms[self.selected](self, message); |
133 end | 133 end |
134 | 134 |
135 -- load the mechanisms | 135 -- load the mechanisms |
136 require "util.sasl.plain" .init(registerMechanism); | 136 require "util.sasl.plain" .init(registerMechanism); |
137 require "util.sasl.anonymous" .init(registerMechanism); | 137 require "util.sasl.anonymous" .init(registerMechanism); |
138 require "util.sasl.scram" .init(registerMechanism); | 138 require "util.sasl.oauthbearer" .init(registerMechanism); |
139 require "util.sasl.external" .init(registerMechanism); | 139 require "util.sasl.scram" .init(registerMechanism); |
140 require "util.sasl.external" .init(registerMechanism); | |
140 | 141 |
141 return { | 142 return { |
142 registerMechanism = registerMechanism; | 143 registerMechanism = registerMechanism; |
143 new = new; | 144 new = new; |
144 }; | 145 }; |