From b0e74464b1e536e37e0094112d2cfaaef072f15e Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 16 Nov 2022 18:40:34 +0100 Subject: [PATCH] OAuth: Handle when client is not identified --- src/ejabberd_oauth.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ejabberd_oauth.erl b/src/ejabberd_oauth.erl index 51676ac5d..a70ca6bae 100644 --- a/src/ejabberd_oauth.erl +++ b/src/ejabberd_oauth.erl @@ -245,6 +245,8 @@ terminate(_Reason, _State) -> code_change(_OldVsn, State, _Extra) -> {ok, State}. +get_client_identity(<<"">>, Ctx) -> + {ok, {Ctx, {client, unknown_client}}}; get_client_identity({client, ClientID}, Ctx) -> {ok, {Ctx, {client, ClientID}}}.