protected function ZoomApiWebhooksController::getZoomVerificationToken in Zoom API 8
Same name and namespace in other branches
- 2.0.x src/Controller/ZoomApiWebhooksController.php \Drupal\zoomapi\Controller\ZoomApiWebhooksController::getZoomVerificationToken()
Gets the Zoom authorize header from the incoming request.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The incoming request.
Return value
mixed FALSE or the authorization header.
1 call to ZoomApiWebhooksController::getZoomVerificationToken()
- ZoomApiWebhooksController::authorize in src/
Controller/ ZoomApiWebhooksController.php - Compares local webhook token to incoming.
File
- src/
Controller/ ZoomApiWebhooksController.php, line 196
Class
- ZoomApiWebhooksController
- Class ZoomApiWebhooksController.
Namespace
Drupal\zoomapi\ControllerCode
protected function getZoomVerificationToken(Request $request) {
// Check for the authorization header provided by Zoom.
if (!$request->headers
->has('authorization')) {
return FALSE;
}
return $request->headers
->get('authorization');
}