Skip to content
RadioTag client library
JavaScript HTML
Find file
Latest commit 27b2419 @chrisn chrisn Version 1.2.0
Failed to load latest commit information.
dist Some minor refactorings and comment improvements
src
test Updated test cases
.bowerrc Add bower, jshint, grunt
.gitignore Browserifiable version of radiotag.js.
.jshintrc Use browserify to produce AMD-compatible build for use in browser
.travis.yml Add .travis.yml
ChangeLog Version 1.2.0
Gruntfile.js
LICENSE Initial commit
README.md Version 1.0.4
bower.json Version 1.2.0
package.json Version 1.2.0

README.md

radiotag.js

Build Status

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

Usage

Installation with Bower

Bower is a package manager for the web.

bower install radiotag.js

RequireJS

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);
    });
});

Stand-alone

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>

Node.js

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);
 });

Development

Build

npm install

bower install

grunt

Related Projects

Cross-Platform Authentication JavaScript Library:

This library has been developed alongside the EBU CPA Client Reference Implementation.

Contributors

Copyright & License

Copyright (c) 2014-2015, EBU-UER Technology & Innovation

The code is under BSD (3-Clause) License. (see LICENSE.txt)

Something went wrong with that request. Please try again.