mirror of
https://github.com/boostorg/mqtt5.git
synced 2025-10-04 12:50:54 +02:00
Summary: - Relates to T12899 - TODO: support re-authentication Reviewers: ivica Reviewed By: ivica Subscribers: korina Maniphest Tasks: T12899 Differential Revision: https://repo.mireo.local/D26327
26 lines
789 B
Plaintext
26 lines
789 B
Plaintext
[/
|
|
Copyright (c) 2023 Mireo
|
|
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
]
|
|
|
|
[section:is_authenticator is_authenticator concept]
|
|
|
|
`is_authenticator` represents authenticator object that needs to have following functions:
|
|
|
|
void async_auth(
|
|
``[reflink2 auth_step_e async_mqtt5::auth_step_e]`` auth_step, // authentication stage
|
|
std::string server_data, // server authentication data
|
|
``[asioreflink any_completion_handler any_completion_handler]``<
|
|
void(
|
|
__ERROR_CODE__ ec, // non-trivial error code aborts authentication
|
|
std::string auth_data // client authentication data
|
|
)
|
|
>
|
|
);
|
|
std::string_view method(); // returns authentication method
|
|
|
|
|
|
[endsect]
|