Wondering what’s next for npm?Check out our public roadmap! »

    casauth

    0.1.0 • Public • Published

    Super simple to use

    CASAuth is a small module that connects to Jasig Central Authentication Service (version supported: ~3.5) by doing simple http POST and GET requests.

    Example:

    Simple web scraper for a page protected by Jasig CAS

    var casauth = require('casauth');
    var request = require('request').defaults({
            //required to pass on cookies
            jar: true
        });
     
    casauth('https://CASADRESS/login', 'USERNAME', 'PASSWORD', function(err){
     
        request('PROTECTED_WEBSITE', function(err,res,bod){
            //Do some scraping here
        })
     
    });

    Install

    npm i casauth

    DownloadsWeekly Downloads

    0

    Version

    0.1.0

    License

    ISC

    Last publish

    Collaborators

    • avatar