0.0.0 • Published 10 years ago

radiotag.js v0.0.0

Weekly downloads
2
License
BSD 3
Repository
github
Last release
10 years ago

radiotag.js

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 cpa 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 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>

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, EBU-UER Technology & Innovation

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