About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Deprecated - Using viewer authentication with other services
Besides the player there are some services (such as Chat, Q&A and Combined Embed) that may also require viewer authentication. In order to make the authentication work across these services, additional steps need to be taken at the end of the authentication flow.
These services provide a URL, that must be used instead of the default pass url. This URL is sent in the hashConsumer query parameter by the service to the application.
Example url in the hashConsumer for chat:
https://video.ibm.com/chat/authorize/12345678?resource=%2Fchat%2F12345678
Example script in native PHP that can authenticate the player and the services as well
// Given a json token has already been constructed$json = json_encode($response);// Default hash consumer for the player$hashConsumer = 'https://video.ibm.com/embed/hashlock/pass';$query = [];// Check if there is a special hash consumerif (!empty($_GET['hashConsumer'])) {