This project contains a JavaScript implementation of a RadioTAG client.
More information on RadioTAG: RadioDNS.org
RadioTAG is based on EBU-CPA (EBU Cross-Platform Authentication) in order to authenticate tags. A JavaScript library is available here: cpa.js
Bower is a package manager for the web.
bower install radiotag.js
You can use RequireJS in order to include the radiotag.js library.
HTML:
<script data-main="js/main" src="require.js"></script>
js/main.js
require.config({
baseUrl: 'js',
paths: {
'radiotag': '../bower_components/radiotag.js/dist/radiotag.min'
}
});
require(['radiotag'], function(radiotag) {
radiotag.getAuthProvider('http://tag.ebu.io/',
function(err, authProvider) {
console.log(err, authProvider.apBaseUrl, authProvider.modes);
});
});
You can use the radiotag.js library directly in the HTML page:
<script src="radiotag.js"></script>
The radiotag
object is used to expose the library:
<script>
radiotag.getAuthProvider('http://tag.ebu.io/',
function(err, authProvider) {
console.log(err, authProvider.apBaseUrl, authProvider.modes);
});
</script>
Install the radiotag.js package using NPM:
npm install radiotag.js
Use require
to access within Node.js:
var radiotag = require('radiotag.js');
radiotag.getAuthProvider('http://tag.ebu.io/',
function(err, authProviderBaseUrl, modes) {
console.log(err, authProviderBaseUrl, modes);
});
npm install
bower install
grunt
Cross-Platform Authentication JavaScript Library:
This library has been developed alongside the EBU CPA Client Reference Implementation.
- Michael Barroco (EBU)
- Chris Needham (BBC)
- Thomas Parisot (BBC)
- Andrew Nicolaou (BBC)
- Andy Buckingham (Togglebit)
Copyright (c) 2014-2015, EBU-UER Technology & Innovation
The code is under BSD (3-Clause) License. (see LICENSE.txt)