Ouath authentication

I have a standalone installation of Jitsi meet on an Ubuntu 16.04, I am trying to utilize Oauth2 authentication method using an Oauth2 server.

I searched around, and the only solution was to use mod_oauthbearer from :

https://modules.prosody.im/mod_auth_oauthbearer.html

I applied the required changes under the main VirtualHost configuration in /etc/prosody/conf.avail/my-domain.cfg.lua

    oauth_client_id = "jitsi-###-####"
    oauth_client_secret = "Jitsi#####"
    oauth_url = "https://testapi.my_domain.com/oauth2-server/"
    
    authentication = "oauthbearer"

When I try to open a new room, I am given a username and password dialog, and once I enter a username and password then prosody log produces the error message below:

Jun 18 09:35:38 mod_bosh error Traceback[bosh]: /usr/lib/prosody/util/sasl.lua:131: attempt to call field ‘?’ (a nil value)
stack traceback:
/usr/lib/prosody/util/sasl.lua:131: in function ‘process’
/usr/lib/prosody/modules/mod_saslauth.lua:77: in function </usr/lib/prosody/modules/mod_saslauth.lua:66>
(tail call): ?
/usr/lib/prosody/util/events.lua:78: in function </usr/lib/prosody/util/events.lua:74>
(tail call): ?
/usr/lib/prosody/core/stanza_router.lua:149: in function ‘dispatch_stanza’
/usr/lib/prosody/modules/mod_bosh.lua:322: in function ‘func’
/usr/lib/prosody/util/async.lua:90: in function </usr/lib/prosody/util/async.lua:88>
stack traceback:
(tail call): ?
/usr/lib/prosody/util/async.lua:163: in function ‘run’
/usr/lib/prosody/modules/mod_bosh.lua:454: in function ‘cb_handlestanza’
/usr/lib/prosody/util/xmppstream.lua:184: in function </usr/lib/prosody/util/xmppstream.lua:164>
[C]: in function ‘parse’
/usr/lib/prosody/util/xmppstream.lua:271: in function ‘feed’
/usr/lib/prosody/modules/mod_bosh.lua:150: in function ‘?’
/usr/lib/prosody/util/events.lua:78: in function </usr/lib/prosody/util/events.lua:74>
(tail call): ?
/usr/lib/prosody/net/http/server.lua:239: in function </usr/lib/prosody/net/http/server.lua:180>

/usr/lib/prosody/net/http/server.lua:112: in function ‘process_next’
/usr/lib/prosody/net/http/server.lua:128: in function ‘success_cb’
/usr/lib/prosody/net/http/parser.lua:177: in function ‘feed’
/usr/lib/prosody/net/http/server.lua:159: in function </usr/lib/prosody/net/http/server.lua:158>
(tail call): ?
/usr/lib/prosody/net/server_select.lua:920: in function </usr/lib/prosody/net/server_select.lua:895>
[C]: in function ‘xpcall’
/usr/bin/prosody:396: in function ‘loop’
/usr/bin/prosody:427: in main chunk
[C]: ?

I am using Prosody trunk nightly build 747 (2017-02-19, 428d4abee723).

Am I using the correct authentication method? Any ideas?