3.7 library(http/http_authenticate): Authenticate HTTP connections using 401 headers
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog HTTP support
        • The HTTP server libraries
          • library(http/http_authenticate): Authenticate HTTP connections using 401 headers
            • http_authenticate/3
            • http_authorization_data/2
            • http_current_user/3
            • http_read_passwd_file/2
            • http_write_passwd_file/2
            • authenticate/3
Availability::- use_module(library(http/http_authenticate)).
Source[nondet]http_current_user(+File, ?User, ?Fields)
True when User is present in the htpasswd file File and Fields provides the additional fields.
Fields are the fields from the password file File, converted using name/2, which means that numeric values are passed as numbers and other fields as atoms. The password hash is the first element of Fields and is a string.