[#158782152]
[#158782156]
This commit is contained in:
Michael Klishin 2018-07-03 20:00:40 +03:00
parent 435d5c7690
commit 54bf34d9c7
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@
description() ->
[{name, <<"UAA">>},
{description, <<"UAA token authentication / authorisation">>}].
{description, <<"Performs authentication and authorisation using JWT tokens and OAuth 2 scopes">>}].
%%--------------------------------------------------------------------
@ -87,7 +87,7 @@ with_decoded_token(DecodedToken, Fun) ->
validate_token_active(#{<<"exp">> := Exp}) when is_integer(Exp) ->
case Exp =< os:system_time(seconds) of
true -> {error, "Auth token expired at unix time: ~p"};
true -> {error, rabbit_misc:format("Provided JWT token has expired at timestamp ~p", [Exp])};
false -> ok
end;
validate_token_active(#{}) -> ok.