/
Get Required Rights Hook
Get Required Rights Hook
This hook will be called by the Authentication Layer of the Control Layer when a request is received to check with the upper application what rights are associated with this request.
Prototype
AUTH_RIGHT HTTPsAuth_GetRequiredRightsHook (const HTTPs_INSTANCE *p_instance, const HTTPs_CONN *p_conn);
Arguments
p_instance
Pointer to the instance structure (read only).
p_conn
Pointer to the connection structure (read only).
Return Values
The authorization right level for this HTTP transaction.
Required Configuration
None.
Notes / Warnings
None.
Example Template
Listing - Get Required Rights Hook Example
#define HTTP_USER_ACCESS AUTH_RIGHT_2 /* ********************************************************************************************************* * AppGlobal_Auth_GetRequiredRightsHook() * * Description : Returns the rights required to fulfill the needs of a given request. * * Argument(s) : p_instance Pointer to the HTTP server instance object. * * p_conn Pointer to the HTTP connection object. * * Return(s) : returns the authorization right level for this example application. * * Caller(s) : (HTTPs_AUTHORIZATION_CFG *)->GetRequiredRights() * * Note(s) : none. ********************************************************************************************************* */ AUTH_RIGHT AppGlobal_Auth_GetRequiredRightsHook (const HTTPs_INSTANCE *p_instance, const HTTPs_CONN *p_conn) { return (HTTP_USER_ACCESS); }
Related content
Login Hook
Login Hook
More like this
Connection Request
Connection Request
More like this
Control Layer
Control Layer
More like this
Logout Hook
Logout Hook
More like this
Auth_GrantRight
Auth_GrantRight
More like this
Authentication module
Authentication module
More like this