You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@serf.apache.org by GitBox <gi...@apache.org> on 2025/06/16 03:20:53 UTC
[GH] (serf/user-defined-authn): Workflow run "Linux (SCons)" failed!
The GitHub Actions job "Linux (SCons)" on serf.git/user-defined-authn has failed.
Run started by GitHub user asfgit (triggered by asfgit).
Head commit for run:
27e1671aae2af9b1580a7211bcdb3fad9f90b7d0 / Branko Čibej <br...@apache.org>
On the user-defined-authn branch: start figuring out how the public authn
callbacks will look like, and what sort of support from the implementation
they'll need.
* serf.h
(SERF_AUTHN_FLAG_NONE,
SERF_AUTHN_FLAG_PIPE,
SERF_AUTHN_FLAG_CREDS): Bit mask constants for authn scheme requirements.
(serf_authn_handle_func_t,
serf_authn_handle_func_t,
serf_authn_setup_request_func_t,
serf_authn_validate_response_func_t): Declare callback types. Still mostly
guesswork as to what the actual arguments will be like.
(serf_authn_register_scheme): Add the flags and callback arguments.
(serf_request_bucket_request_create): Fix typo in docstring.
* auth/auth.h
(serf__authn_scheme_t::user_magic): Renamed from 'magic'.
(serf__authn_scheme_t::user_baton): Renamed from baton'.
(serf__authn_scheme_t::user_flags,
serf__authn_scheme_t::user_init_conn_func,
serf__authn_scheme_t::user_handle_func,
serf__authn_scheme_t::user_setup_request_func,
serf__authn_scheme_t::user_validate_response_func): New members.
* auth/auth.c
(serf_authn_register_scheme): Add and store the new parameters
to the authn descriptor struct.
* auth/auth_user_defined.c
(validate_user_authn): Change magic -> user_magic.
(get_authn_info): New helper function.
(authn_baton_wrapper): New; the per-connection authentication baton.
(serf__authn_user__init_conn): Implement connection initialization.
(serf__authn_user__handle,
serf__authn_user__setup_request,
serf__authn_user__validate_response): Add logging to argument validation.
* serf_private.h
(serf__connection_set_pipelining): Change the return type.
* src/outgoing.c
(serf__connection_set_pipelining): Return the previous pipelining state.
* test/test_auth.c
(test_authn_register_one,
test_authn_register_two,
test_authn_register_twice): Update calls to serf_authn_register_scheme.
(user_authn_baton, user_authn_t): Baton type for user-defined authn tests.
(USER_AUTHN_COUNT): Helper macro for counting callback invocations.
(user_authn_make_baton): Allocation helper for user_authn_t.
(user_authn_cache, user_authn_baton_t): Per-connection authn baton type.
(user_authn_prefix): Helper string for validation.
(user_authn_init_conn): Complete connection-init callback.
(user_authn_handle,
user_authn_setup_request,
user_authn_validate_response): Placeholders for the other three callbacks.
(user_authn_credentials_callback): Credentials callback for user-authn tests.
(user_authentication): Partial test for user authentication.
(test_user_authentication,
test_user_authentication_keepalive_off): Two entry points for this test.
(test_auth): Register only test_user_authentication for now.
* test/test_util.c
(setup_test_context): Duh. Set up logging only once per new context.
git-svn-id: https://svn.apache.org/repos/asf/serf/branches/user-defined-authn@1926453 13f79535-47bb-0310-9956-ffa450edef68
Report URL: https://github.com/apache/serf/actions/runs/15670995458
With regards,
GitHub Actions via GitBox