casauth
v0.1.0
Published
Authenticator for PHP Jasig CAS ~3.5
Downloads
4
Readme
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
})
});