diff options
Diffstat (limited to 'src/http_auth.erl')
-rw-r--r-- | src/http_auth.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/http_auth.erl b/src/http_auth.erl index 2cee51f..c8a8389 100644 --- a/src/http_auth.erl +++ b/src/http_auth.erl @@ -2,7 +2,7 @@ %%% See LICENSE for licensing information. -module(http_auth). --export([verify_auth/4, create_auth/3, init_key_table/0, sign_stored/1, verify_stored/3]). +-export([verify_auth/4, create_auth/3, init_key_table/0, sign_stored/1, verify_stored/3, own_name/0]). -define(KEY_TABLE, http_auth_keys). @@ -25,6 +25,9 @@ read_key_table() -> none end. +own_name() -> + {ok, {KeyName, _}} = application:get_env(plop, own_key), + KeyName. own_key() -> case application:get_env(plop, own_key, none) of |