NetworkManager Automatic Web Authentication 0.1 (0.3) release
Thursday, 04 December 2008 14:58
Jason (Slokunshialgo)
Some of this is just going to be a repeat from my pre-release post, but since this is the full release, I feel I should put it all here anyway. Before I get too far into this, I will state this: this is a dual-numbered release. It is numbered 0.3 for my OSD600 course, but since this is the first release that is actually close to the original idea (0.1 and 0.2 were just working on DBus in XPCOM), it is officially numbered 0.1. For those who are new to this blog, or just the idea of the NetworkManaher Automatic Web Authentication I've been working on (which I'm calling "nmAutoLogin" inside itself) , the idea is that several networks, such as colleges, workplaces, café hotspots, trains, airplanes, etc. require you to navigate to a webpage and login to there before you can access the internet, even outside of the browser. Having to do this manually can be a bit of a chore, or just an annoyance. Would it not be nice if you could just have NetworkManager in Linux connect to a wireless network, then automatically have a browser like Firefox open this page and log in to it? That's what the idea here is: When NetworkManager connects to a wifi network that needs such a login to take place, a daemon will pick up on this connection, open Firefox if it's not open, navigate to the page, and log the user in, using Firefox's Password Manager to hold the username & password for this website. The reasoning for using Firefox rather than one of several web browsing libraries available out there is relatively sound: - Firefox has a Password Manager: Why would we want to store passwords in yet another place, when we can keep them centralized?
- Firefox is a GUI: If something goes wrong (wrong password, unable to connect, etc) the user should be able to see this, and be able to react to it
- Javascript Popup Windows: Some of these network websites will pop up a little window that runs some javascript over time to make sure the user is active, and that if they disocnnect, it will log them out. Why should we try to integrate a full Javascript engine into something else, when we already have a browser that can do it all?
The main problem with trying to get this to work, is that there is no way to control Firefox from outside of Firefox. The solution for this was to write an extension that includes an XPCOM component allowing it to listen to signals sent out on DBus, and then have the usual Javascript in an extension that would pick up on this, and react accordingly. At present, most of the code for this release is actually in this extension, even if the DBus work is more extensive in the Daemon. The basic structure of how this entire thing works:
Read more...
NetworkManager Automatic Web Authentication: 0.3 pre-release
Wednesday, 03 December 2008 12:35
Jason (Slokunshialgo)
Well, it's about that time of year when assignments are due, and we're all looking forward to a few weeks off between semesters. I still have other assignments I need to work on today, so I'm not going to make a full post like I would like right now, but I just want to say that the NetworkManager Automatic Web Authentication 0.3 release for OSD600 is done, and this is my nearly-official announcement of it. Main thing is, I'm hoping some people will test it out, and I'll be making a longer post later. So, without further ado, instructions: WARNING: 32-BIT X86 LINUX ONLY
- Download and extract the tarball
- From the release director, install into Firefox the nmAutoLogin-x86.xpi file
- Run the nmAutoLogin.py file from the release directory
- python nmAutoLogin.py
- if the permissions held true...
- double-click and run
- ./nmAutoLogin.py
- Make sure Firefox is open and the extension installed
- connect (or reconnect) to a wireless network with NetworkManager
- Watch as a window opens and submit itself
Any suggestions, idea, glitches, bugs, errors, comments, etc. are helpful and requested. The easiest way to do this is to just add a comment to this post.
|
The Forgotten Labs: Part 1: Modifying the Browser Lab
Tuesday, 02 December 2008 13:12
Jason (Slokunshialgo)
I did this one awhile ago, but for one reason or another, forgot to post the patch... So, with no further ado, I put it up in my usual pastebin. Not much to say, other than that I cannot really remember what I originally would have said about this.
Last Updated ( Tuesday, 02 December 2008 13:13 )
Python is Some Sort of Wonder Drug
Saturday, 29 November 2008 19:26
Jason (Slokunshialgo)
Do I know python? No, no I do not. Do I like coding in it? You bet your britches I do! Bet your britches...? Does anybody say that anymore? Well, I guess they do, since I just said it, but really, when did you last hear it said? Does anybody even wear britches anymore, and if they do, why would they want to bet them in th first place? Just to get another pair to wear over top their first pair? That would just be weird, and likely, uncomfortable. Now, once I figure out why I'm talking about wearing two pairs of britches at a time, I should be set. Anyways, enough about britches, and on to the point of this post: Python is like somesort of wonder drug after drudging my way around through C all semester. Messing around with it earlier in the semester (trying to learn DBus through a language you don't know is NOT a good way to do it), I was able to get a few things done, rather quickly. With this in mind, I set out to use it again, in the hopes of learning it, and using it to very quickly build up what I need done. I have not been let down.
Last Updated ( Wednesday, 03 December 2008 14:32 )
Read more...
|