This project contains reference implementations of Cross-Platform Authentication client library
npm install cpa.jscpa.js
======
This project contains a library which implements the Cross-Platform Authentication
protocol for Clients and is provided and maintained as reference implementation.
More information on Cross-Platform Authentication: EBU Tech
Bower is a package manager for the web.
> bower install cpa.js
You can use RequireJS in order to include the cpa library.
> HTML:
> js/main.js
require.config({
baseUrl: 'js',
paths: {
'cpa': '../bower_components/cpa.js/dist/cpa.min'
}
});
require(['cpa'], function(cpa) {
cpa.device.registerClient('http://local.ebu.io:8001/', '1', '2', '3',
function(err, info) {
console.log(err, info);
});
});
You can use the CPA library directly in the HTML page:
The cpa object is used to expose the library :
> npm install
> bower install
> grunt
The demonstrators below are based on this library:
* CPA Client
* Chris Needham (BBC)
* Michael Barroco (EBU)
Copyright (c) 2014, EBU-UER Technology & Innovation
The code is under BSD (3-Clause) License. (see LICENSE.txt)