Request auth types are used to parse the authentication information in the
Authorization header of the HTTP request. They are called by the
$request->auth() method internally.
You can create your own custom auth types by extending one of the existing types or the base
If your auth type shares some of its logic with an existing type, you can extend the class of that type:
You then have to register the new auth type with its name. For example for the
Authorization: Custom-Token ... header:
Alternatively, you can extend the
Auth class to implement a new auth type.
As before, you have to register the new auth type: