michaelrsweet / pappl

PAPPL - Printer Application Framework
https://www.msweet.org/pappl
Apache License 2.0
309 stars 49 forks source link

papplSystemSetAuthCallback API #185

Closed michaelrsweet closed 2 years ago

michaelrsweet commented 2 years ago

Currently there is no way to support username/password authentication beyond PAM on Unix, with no support at all on Windows. The proposed API is:

typedef http_status_t (*pappl_auth_cb_t)(pappl_client_t *client, const char *group, void *cb_data);
void papplSystemSetAuthCallback(pappl_system_t *system, const char *scheme, pappl_auth_cb_t cb, void *cb_data);

The "scheme" parameter can be "Basic" or "Digest".

michaelrsweet commented 2 years ago

[master db4587c] Implement papplSystemSetAuthCallback (Issue #185)