# Civetweb API Reference ### `mg_set_auth_handler( ctx, uri, handler, cbdata );` ### Parameters | Parameter | Type | Description | | :--- | :--- | :--- | |**`ctx`**|`struct mg_context *`|| |**`uri`**|`const char *`|| |**`handler`**|`mg_authorization_handler`|| |**`cbdata`**|`void *`|| ### Return Value *none* ### Description ### See Also