cat_gateway::service::common::auth

Module api_key

source
Expand description

API Key authorization scheme is used ONLY by internal endpoints.

Its purpose is to prevent their use externally, if they were accidentally exposed.

It is NOT to be used on any endpoint intended to be publicly facing.

Structsยง

Constantsยง

Functionsยง

  • api_checker ๐Ÿ”’
    Check the provided API Key matches the API Key defined by for the deployment.
  • check_api_key ๐Ÿ”’
    Check if the API Key is correctly set. Returns an error if it is not.