Kurlyk
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
10
11namespace kurlyk {
12namespace http {
13namespace auth {
14
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
Defines case-insensitive utilities and data structures for HTTP headers, cookies, and query parameter...
Defines the HttpRequest class for configuring HTTP requests.
Represents an HTTP request configuration.
Interface for authentication providers that modify HTTP requests or headers.
virtual bool authorize(HttpRequest &request) const =0
Modifies an HttpRequest in-place to include authentication credentials.
virtual bool authorize(Headers &headers) const =0
Modifies a header map in-place to include authentication credentials.
Primary namespace for the Kurlyk library, encompassing initialization, request management,...
utils::CaseInsensitiveMultimap Headers
Alias for HTTP headers, providing a case-insensitive unordered multimap.