Functions implementing this callback shall return %TRUE when the
credentials provided by the authentication request grant access
to the resource described by context.
The username is %NULL when no creditials were passed, and anonymous access
is tried.
See also #epc_publisher_set_auth_flags. When EPC_AUTH_DEFAULT is used,
you should call #epc_auth_context_check_password
to verify that the password passed in the request matches the known password
for that user. In this case there is no way to retrieve the password from
the #EpcAuthContext because the network protocol transfers just a hash code,
not the actual password.
However, when EPC_AUTH_PASSWORD_TEXT_NEEDED is used, you should call
epc_auth_context_get_password() and then do your own authentication check.
For instance, you might need to delegate the authentication to some other
code or server, such as a database server.
Functions implementing this callback shall return %TRUE when the credentials provided by the authentication request grant access to the resource described by
context
.The
username
is %NULL when no creditials were passed, and anonymous access is tried.See also #epc_publisher_set_auth_flags. When EPC_AUTH_DEFAULT is used, you should call #epc_auth_context_check_password to verify that the password passed in the request matches the known password for that user. In this case there is no way to retrieve the password from the #EpcAuthContext because the network protocol transfers just a hash code, not the actual password.
However, when EPC_AUTH_PASSWORD_TEXT_NEEDED is used, you should call epc_auth_context_get_password() and then do your own authentication check. For instance, you might need to delegate the authentication to some other code or server, such as a database server.