vibe.http.auth.basic_auth

Implements HTTP Basic Auth.

Members

Aliases

PasswordVerifyCallback
alias PasswordVerifyCallback = bool delegate(string user, string password)
Undocumented in source.
addBasicAuth
alias addBasicAuth = vibe.http.internal.basic_auth_client.addBasicAuth
Undocumented in source.

Functions

checkBasicAuth
bool checkBasicAuth(HTTPServerRequest req, PasswordVerifyCallback pwcheck)

Checks for valid HTTP Basic Auth authentication on the given request.

performBasicAuth
HTTPServerRequestDelegateS performBasicAuth(string realm, PasswordVerifyCallback pwcheck)

Returns a request handler that enforces request to be authenticated using HTTP Basic Auth.

performBasicAuth
HTTPServerRequestDelegateS performBasicAuth(string realm, bool delegate(string, string) @(system) pwcheck)

Scheduled for deprecation - use a @safe callback instead.

performBasicAuth
string performBasicAuth(HTTPServerRequest req, HTTPServerResponse res, string realm, PasswordVerifyCallback pwcheck)

Enforces HTTP Basic Auth authentication on the given req/res pair.

performBasicAuth
string performBasicAuth(HTTPServerRequest req, HTTPServerResponse res, string realm, bool delegate(string, string) @(system) pwcheck)

Scheduled for deprecation - use a @safe callback instead.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.

Authors

Sönke Ludwig