UNPKG

shubhadownloader

Version:

There is large amount of information available in market place. The markets are always in sync. In today's world investors find it very difficult to make effective use of information available to them. Shubha Downloader is great tool which resolves this problem and helps investor to increase his productivity and stay focused on decision making. Shubha Downloader enable end user to download market data from available sources and organize it. Shubha Downloader is Open source & FREE utility for end users. Shubha Downloader have main features as follows End of the day market data from web to your favorite charting application . Fundamental market data from web to your favorite charting application. Market reports from web to your favorite charting application.

34 lines (29 loc) 899 B
var express = require("express") , passport = require("passport") , util = require("util") , YahooStrategy = require("passport-yahoo").Strategy; var app = express(); passport.use(new YahooStrategy({ returnURL: 'http://localhost:3000/auth/yahoo/return', realm: 'http://localhost:3000/' }, function(identifier, done) { User.findByOpenID({ openId: identifier }, function (err, user) { return done(err, user); }); } )); app = express.createServer(); app.get('/auth/yahoo', passport.authenticate('yahoo'), function(req, res){ // The request will be redirected to Yahoo for authentication, so // this function will not be called. }); app.get('/auth/yahoo/return', passport.authenticate('yahoo', { failureRedirect: '/login' }), function(req, res) { // Successful authentication, redirect home. res.redirect('/'); }); app.listen(3000);