aboutsummaryrefslogtreecommitdiff
path: root/src/ejabberd_option.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ejabberd_option.erl')
-rw-r--r--src/ejabberd_option.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ejabberd_option.erl b/src/ejabberd_option.erl
index fde41e78d..773775743 100644
--- a/src/ejabberd_option.erl
+++ b/src/ejabberd_option.erl
@@ -51,6 +51,7 @@
-export([hosts/0]).
-export([include_config_file/0, include_config_file/1]).
-export([jwt_auth_only_rule/0, jwt_auth_only_rule/1]).
+-export([jwt_jid_field/0, jwt_jid_field/1]).
-export([jwt_key/0, jwt_key/1]).
-export([language/0, language/1]).
-export([ldap_backups/0, ldap_backups/1]).
@@ -431,6 +432,13 @@ jwt_auth_only_rule() ->
jwt_auth_only_rule(Host) ->
ejabberd_config:get_option({jwt_auth_only_rule, Host}).
+-spec jwt_jid_field() -> binary().
+jwt_jid_field() ->
+ jwt_jid_field(global).
+-spec jwt_jid_field(global | binary()) -> binary().
+jwt_jid_field(Host) ->
+ ejabberd_config:get_option({jwt_jid_field, Host}).
+
-spec jwt_key() -> jose_jwk:key() | 'undefined'.
jwt_key() ->
jwt_key(global).