JavaScript is required to use Bungie.net

Group Avatar

BungieNetPlatform

"Updates, discussions, and documentation of the BungieNetPlatform API."

Request Join
originally posted in:BungieNetPlatform
Edited by Sargo Darya: 9/4/2014 12:10:48 PM
1

Tutorial: Node.js only Login on Bungie

Hey guys, just wanted to let you guys know that it is possible to login using only Node.js WITHOUT any application dependencies. For this we use the Zombie npm module and Facebook as Auth Provider. [b]Requirements:[/b] - Facebook Login - Bungie already granted permissions on the FB account - Node.js Step 1: If you don't already have node installed, install node (duh!). Step 2: Create a new directory for your project. Step 3: npm init, just enter through all the questions. Step 4: npm install zombie --save Step 4b: If you want to get fancy, you can also install request and tough-cookie to piggyback on zombies cookies and use regular requests. Step 5: Paste the following code into index.js : http://pastebin.com/tw5JpL61 (Note: I wrote this in the pastebin itself, it might have syntax errors) Step 6: Run the code using node index.js and check if you get the bungleatk token at the end. Optional: If you want you can now piggyback on the cookies and use browser.windows.close to close the window. Happy Hacking, Sargo

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

View Entire Topic
You are not allowed to view this content.
;
preload icon
preload icon
preload icon