mod_external_services: Validate required attributes on credentials requests

This commit is contained in:
Kim Alvefur 2021-08-29 23:26:19 +02:00
parent 4ddf47aaf0
commit d915f98800
2 changed files with 20 additions and 1 deletions

View file

@ -52,6 +52,20 @@ Romeo receives:
</credentials>
</iq>
Romeo sends:
<iq type='get' xml:lang='sv' id='lx5' to='localhost'>
<credentials xmlns='urn:xmpp:extdisco:2'>
<service host='default.example' />
</credentials>
</iq>
Romeo receives:
<iq type='error' id='lx5' from='localhost'>
<error type='modify'>
<bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</iq>
Romeo disconnects
# recording ended on 2020-07-18T16:47:57Z