SimpleConnect JS Library

Provides SimpleConnect Class to connect users to BackdropCMS,Drupal7,Drupal8,Drupal9 SimpleConnect Module and do authenticated requests.

Goal is to provide a simple way to connect to different Drupal instances and Versions (one ring to rule them all!)

In ES5 ECMAScript 2009 there are no Classes and Promises, SimpleConnect overcomes this using Prototypes and Bluebird Promises.

The Drupal Modules provide you with the same set of Endpoints to simply connect,login and register users.

All Methods return Promises or SimpleConnectException

       SC = new SimpleConnect(host);
       //In ES5 you write:
       SC.token().then(
           function(token){
               alert(token);
           },function(error){
            alert(error);
           });

       //In ES6 you write:
       SC.token().then(token=>{
        alert(token);
       },error=>{
        alert(error);
       });       
    

Click here to test the ECMA2009 compatible Javascript Class

SimpleConnect ES5(ECMAScript 2009)

Click here to test the ECMA2015 compatible Javascript Class

SimpleConnect ES6(ECMAScript 2015)

Click here to checkout the SimpleConnect Node Module on Github

SimpleConnect Node Module on Github

SimpleConnect Modules

Goal is to provide the same set of endpoints for different Drupal instances and Versions (one ring to rule them all!)

GET http://yourhost.com/stage/rest/simpleconnect/token

POST http://yourhost.com/stage/rest/simpleconnect/connect
X-CSRF-TOKEN


POST http://yourhost.com/stage/rest/simpleconnect/login
X-CSRF-TOKEN

{"username":"youruser","password":"yourpass"}


POST http://yourhost.com/stage/rest/simpleconnect/register
X-CSRF-TOKEN

{"username":"youruser","password":"yourpass","mail":"yourmail@yourhost.com"}


POST http://yourhost.com/stage/rest/simpleconnect/logout
X-CSRF-TOKEN
Use these module to provide flood protection!!! flood_control

Click here to download SimpleConnect for Backdrop CMS

simpleconnect_bd.tar.gz

Click here to download SimpleConnect for Drupal7

simpleconnect_d7.tar.gz

Click here to download SimpleConnect for Drupal8

simpleconnect_d8.tar.gz

Click here to download SimpleConnect for Drupal9

simpleconnect_d9.tar.gz