-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: CI and Tests #79
base: master
Are you sure you want to change the base?
Conversation
959b9da
to
73c1b6c
Compare
961289c
to
006914c
Compare
-type context() :: proplists:proplist(). | ||
-type auth() :: #a{}. | ||
-type user() :: any(). %% Opaque User Object | ||
-type client() :: any(). %% Opaque Client Object | ||
-type resowner() :: any(). %% Opaque Resource Owner Object | ||
-type rediruri() :: any(). %% Opaque Redirection URI | ||
-type device_id() :: any(). | ||
-type token() :: binary(). | ||
-type response() :: oauth2_response:response(). | ||
-type lifetime() :: non_neg_integer(). | ||
-type scope() :: list(binary()) | binary(). | ||
-type appctx() :: term(). | ||
-type error() :: access_denied | invalid_client | invalid_grant | | ||
invalid_request | invalid_authorization | invalid_scope | | ||
unauthorized_client | unsupported_grant_type | | ||
unsupported_response_type | server_error | | ||
temporarily_unavailable | atom(). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only added new device_id()
type, and increased the indentation for all others
006914c
to
50655ac
Compare
50655ac
to
4272752
Compare
@@ -218,15 +218,21 @@ to_binary([Binary]) when is_binary(Binary) -> | |||
to_binary([BinaryHead | Tail]) when is_binary(BinaryHead) -> | |||
<<BinaryHead/binary, " ", (to_binary(Tail))/binary>>; | |||
to_binary(List) when is_list(List) -> | |||
to_binary(list_to_binary(List)); | |||
erlang:display({list, List}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug code?
%% @doc Sign the grant context with a private key and produce a JWT. | ||
%% The grant context is a proplist carrying information about the identity | ||
%% with which the token is associated, when it expires, etc. | ||
-callback jwt_sign(grantctx(), appctx()) -> {ok, token()}. | ||
|
||
%% @doc Verifies a JWT, returning the corresponding grant context if | ||
%% verification succeeds. | ||
-callback jwt_verify(token()) -> {ok, grantctx()} | {error, badjwt}. | ||
|
||
%% @doc A case-sensitive string or URI that uniquely identifies the issuer. | ||
-callback jwt_issuer() -> binary(). | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These call backs were not going to be removed because it's a public repo? Commenting so we don't forget.
Warning
This is a public repo. Don't discuss Kivra internals here.
About
Fix broken CI and tests; remove unused callbacks.