diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2015-06-25 02:14:18 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2015-06-25 02:14:18 +0200 |
| commit | 85adf26a787b33d69d07df0dc786516fed800e21 (patch) | |
| tree | 12de4b0cae3999f3da7bbf3d21c631eecf6bf4a3 /src/auth.hh | |
| parent | 0c55606145b6c5d9a303b19b3dba4996ec3ed3a9 (diff) | |
Add basic auth support
Diffstat (limited to 'src/auth.hh')
| -rw-r--r-- | src/auth.hh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/auth.hh b/src/auth.hh new file mode 100644 index 0000000..ba98b41 --- /dev/null +++ b/src/auth.hh @@ -0,0 +1,25 @@ +#ifndef AUTH_HH +#define AUTH_HH + +#include <string> + +namespace stuff { + +class CGI; + +class Auth { +public: + static bool auth(CGI* cgi, const std::string& realm, + const std::string& passwd, + std::string* user); + +private: + Auth() = delete; + ~Auth() = delete; + Auth(Auth&) = delete; + Auth& operator=(Auth&) = delete; +}; + +} // namespace stuff + +#endif /* AUTH_HH */ |
