Kurlyk
Toggle main menu visibility
Loading...
Searching...
No Matches
IAuthProvider.hpp
Go to the documentation of this file.
1
#pragma once
2
#ifndef _KURLYK_HTTP_AUTH_IAUTH_PROVIDER_HPP_INCLUDED
3
#define _KURLYK_HTTP_AUTH_IAUTH_PROVIDER_HPP_INCLUDED
4
7
8
#include "
../data/HttpRequest.hpp
"
9
#include "
kurlyk/utils/CaseInsensitiveMultimap.hpp
"
10
11
namespace
kurlyk
{
12
namespace
http {
13
namespace
auth {
14
17
class
IAuthProvider
{
18
public
:
19
virtual
~IAuthProvider
() {}
20
24
virtual
bool
authorize
(
HttpRequest
& request)
const
= 0;
25
29
virtual
bool
authorize
(
Headers
& headers)
const
= 0;
30
};
31
32
}
// namespace auth
33
}
// namespace http
34
}
// namespace kurlyk
35
36
#endif
// _KURLYK_HTTP_AUTH_IAUTH_PROVIDER_HPP_INCLUDED
CaseInsensitiveMultimap.hpp
Defines case-insensitive utilities and data structures for HTTP headers, cookies, and query parameter...
HttpRequest.hpp
Defines the HttpRequest class for configuring HTTP requests.
kurlyk::HttpRequest
Represents an HTTP request configuration.
Definition
HttpRequest.hpp:16
kurlyk::http::auth::IAuthProvider
Interface for authentication providers that modify HTTP requests or headers.
Definition
IAuthProvider.hpp:17
kurlyk::http::auth::IAuthProvider::authorize
virtual bool authorize(HttpRequest &request) const =0
Modifies an HttpRequest in-place to include authentication credentials.
kurlyk::http::auth::IAuthProvider::~IAuthProvider
virtual ~IAuthProvider()
Definition
IAuthProvider.hpp:19
kurlyk::http::auth::IAuthProvider::authorize
virtual bool authorize(Headers &headers) const =0
Modifies a header map in-place to include authentication credentials.
kurlyk
Primary namespace for the Kurlyk library, encompassing initialization, request management,...
kurlyk::Headers
utils::CaseInsensitiveMultimap Headers
Alias for HTTP headers, providing a case-insensitive unordered multimap.
Definition
CaseInsensitiveMultimap.hpp:62
include
kurlyk
http
auth
IAuthProvider.hpp
Generated by
1.17.0