Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

fix: CI and Tests #79

wants to merge 4 commits into from

Conversation

moritzploss-k
Copy link

@moritzploss-k moritzploss-k commented Jan 12, 2024

Warning

This is a public repo. Don't discuss Kivra internals here.

About

Fix broken CI and tests; remove unused callbacks.

@moritzploss-k moritzploss-k force-pushed the moritz--fix-and-upgrade branch from 959b9da to 73c1b6c Compare January 12, 2024 08:15
@moritzploss-k moritzploss-k changed the title Moritz fix and upgrade fix: CI and Tests Jan 12, 2024
@moritzploss-k moritzploss-k force-pushed the moritz--fix-and-upgrade branch 4 times, most recently from 961289c to 006914c Compare January 12, 2024 11:54
Comment on lines +68 to +84
-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().
Copy link
Author

@moritzploss-k moritzploss-k Jan 12, 2024

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

@moritzploss-k moritzploss-k force-pushed the moritz--fix-and-upgrade branch from 006914c to 50655ac Compare January 12, 2024 11:55
@moritzploss-k moritzploss-k force-pushed the moritz--fix-and-upgrade branch from 50655ac to 4272752 Compare January 12, 2024 11:56
@moritzploss-k moritzploss-k marked this pull request as ready for review January 12, 2024 11:58
@moritzploss-k moritzploss-k requested a review from a team January 12, 2024 12:01
@@ -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}),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug code?

Comment on lines -115 to -126
%% @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().

Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants