Problems with email/password validation

Josh Knowles's Avatar

Josh Knowles

01 Jun, 2007 04:29 PM

Has anyone successfully used ActiveResource w/ email/password authentication to query Lighthouse?

I tried out the API using ActiveResource for the first time last night. As I'm just a user on the account, and not an admin, I had to user the email/pass authentication as opposed to the token. Unfortunately I was unable to get it to accept my username as URI was choking on the "@" symbol and raising an exception.

Environment: Max OS 10.4.9 (Intel) Ruby 1.8.6 ActiveSupport (#6924) ActiveResource (#6924)

  1. 1 Posted by Rick on 01 Jun, 2007 10:36 PM

    Rick's Avatar

    You need to encode the @ symbol in the email address. Try %40.

  2. 2 Posted by Rick on 04 Jun, 2007 02:39 PM

    Rick's Avatar

    Hey, I'm an idiot. Should just use basic authentication rather than trying to encode the email in the URL like that. I'll update the lighthouse api to do this instead.

    Edit: Fixed. Lighthouse.authenticate will do the right thing now. I still want to allow token support though but this'll get you up and running in the mean time I hope :)

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac