Backpack and fluid - I want to always be logged in

650 views
Skip to first unread message

George

unread,
Apr 30, 2008, 3:31:37 PM4/30/08
to fluidapp
Does anyone know how I can autologin to Backpack when using fluid?

Every time I quit the backpack application I made with fluid it logs
me out of backpack. Can I make it so I'm always logged in under my
backpack account?

Henrik Nyh

unread,
Apr 30, 2008, 3:39:36 PM4/30/08
to flui...@googlegroups.com
You could most likely do this with a userscript:
http://userscripts.org/scripts/search?q=autologin

George

unread,
Apr 30, 2008, 3:41:48 PM4/30/08
to fluidapp
Thanks.

However, I see a lot of scripts for autologin for gmail and other
services but none for backpack...

On Apr 30, 3:39 pm, "Henrik Nyh" <hen...@nyh.se> wrote:
> You could most likely do this with a userscript:http://userscripts.org/scripts/search?q=autologin
>

George

unread,
Apr 30, 2008, 3:46:36 PM4/30/08
to fluidapp
Yeah, so far, I can't find any backpack autologin scripts.

Henrik Nyh

unread,
Apr 30, 2008, 3:51:20 PM4/30/08
to flui...@googlegroups.com
Right. I meant to use those as inspiration and modify them: it should
be pretty minor changes.

On 4/30/08, George <georgej...@gmail.com> wrote:
>

George

unread,
Apr 30, 2008, 4:44:53 PM4/30/08
to fluidapp
I have no idea how to do that.

On Apr 30, 3:51 pm, "Henrik Nyh" <hen...@nyh.se> wrote:
> Right. I meant to use those as inspiration and modify them: it should
> be pretty minor changes.
>

Colin

unread,
Apr 30, 2008, 6:04:59 PM4/30/08
to fluidapp
George,

If you give me the URL for your basecamp login page I'll write you an
auto login script. It takes like 2 seconds, but like you said, if you
have no idea how to do that, it's pretty much impossible, right? :-p

Colin

P.S. You don't have to necessarily give me the URL for your basecamp
login, just to a basecamp login. I couldn't find any way to login from
their homepage and I need to see the page's source.

George

unread,
May 1, 2008, 10:21:35 AM5/1/08
to fluidapp
Colin,

First off, you rule! Thank you!

Second, the backpack login pages generally are like this:
http://username.backpackit.com/login

So if my backpack login was "colin" it would be http://colin.backpackit.com/login

Once again, THANK YOU!

George

Colin

unread,
May 1, 2008, 12:20:58 PM5/1/08
to fluidapp
George,

I'm going to post two scripts here, the first one is more secure,
however it requires Fluid to remember your username and passwords
(like Safari does) and I couldn't get Fluid to remember passwords. The
second one is less secure because you'll need to put your username and
password into the userscript but it works for now.

Colin

--

// ==UserScript==
// @name auto-login
// @namespace http://fluidapp.com
// @description Auto-login for Backpack, requires username/password
stored by Fluid
// @include *.backpackit.com/*
// @author Colin
// ==/UserScript==

(function () {
if (window.fluid) {
var location = window.location.toString();
if(location.indexOf("login") > -1){
var username = document.getElementById("username"); if (username ==
undefined) return;
var password = document.getElementById("password"); if (password ==
undefined) return;
var flash = document.getElementById("Flash");
if(flash != undefined){ fHTML = flash.innerHTML;
if(fHTML.indexOf("invalid") > -1) return; };
if ((username.value == "") || (password.value == "")) return;
document.forms[0].submit();
}
}
})();

--

// ==UserScript==
// @name auto-login
// @namespace http://fluidapp.com
// @description Auto-login for Backpack, username/password stored in
userscript :-/
// @include *.backpackit.com/*
// @author Colin
// ==/UserScript==

(function () {
if (window.fluid) {
var location = window.location.toString();
if(location.indexOf("login") > -1){
var username = document.getElementById("username"); if (username ==
undefined) return;
var password = document.getElementById("password"); if (password ==
undefined) return;
username.value = "yourUsername";
password.value = "yourPassword";
var flash = document.getElementById("Flash");
if(flash != undefined){ fHTML = flash.innerHTML;
if(fHTML.indexOf("invalid") > -1) return; };
document.forms[0].submit();
}
}
})();

On May 1, 9:21 am, George <georgejabra...@gmail.com> wrote:
> Colin,
>
> First off, you rule!  Thank you!
>
> Second, the backpack login pages generally are like this:http://username.backpackit.com/login
>
> So if my backpack login was "colin" it would behttp://colin.backpackit.com/login

Colin

unread,
May 1, 2008, 12:25:31 PM5/1/08
to fluidapp
Todd,

Am I just missing something or does Fluid not store usernames and
passwords like Safari does?

I am using 1password so I'm not sure if that's screwing up anything on
my end.

Colin

George

unread,
May 1, 2008, 8:52:34 PM5/1/08
to fluidapp
I cannot thank you enough Colin. I will try this out when I am not so
busy to see if it works.

quidire

unread,
May 20, 2008, 11:19:58 AM5/20/08
to fluidapp
What was the result of that user script? I log onto a variety of
sites w/ OpenID, and I'm wondering whether on each I'm going to have
to "login" w/ my uri, then interact w/ the openid site, then bounce
back, within the SSB. That would be... worse than persistent
sessions, and saved passwords...

That having been said, I doubt Fluid can borrow the Safari
infrastructure for this, I doubt that's distributed w/ WebKit.

Were Fluid to do so, Keychain/.Mac compliance would (of course) be
appreciated.

-RS

Colin

unread,
May 20, 2008, 7:51:25 PM5/20/08
to fluidapp
I'm not really sure what you mean by "what was the result of that user
script", it works if that's what you mean.

As far as the OpenID login, I'm pretty sure each Fluid application is
self contained so just because you open one app and log in with your
OpenID doesn't mean you'll be logged in in all your Fluid apps.

Colin

Duncan Beevers

unread,
May 20, 2008, 7:55:15 PM5/20/08
to flui...@googlegroups.com
If you use client certificates to authenticate, certificates stored in
the Keychain are available to Safari and all Fluid instances.

http://drnicwilliams.com/2008/02/22/zero-sign-on-with-client-certificates/

Reply all
Reply to author
Forward
0 new messages