Authentication and XML

12 views
Skip to first unread message

JezC

unread,
Jan 10, 2012, 4:22:32 AM1/10/12
to Hobo Users
Hi - another question I can't easily answer from the docs... I have an
app that I'd like to be accessible to another program. So I want an
XML interface. I can see how to add those forms. I can't see any docs
about how to alter the Hobo User model to allow some sort of token
based authentication - I've seen and used this with Devise/CanCan, but
I don't see (or may be I don't understand what I see) in the standard
Hobo User Model.

How do I create a Hobo App that allows another program to authenticate
and interact?

Bob Sleys

unread,
Jan 10, 2012, 10:16:31 AM1/10/12
to hobo...@googlegroups.com
I believe you are going to have to modify the user model etc to handle this.  I think it would be similar to how forgot password sends a token that authorized the user to set their password.  You'll need a similar token that is saved on the user model that is used to authorize the user for the xml interface.

Bob

Ignacio Huerta

unread,
Jan 10, 2012, 11:42:22 AM1/10/12
to hobo...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Have you tried ActiveResource? I just used it to connect two Rails
apps (one of them Hobo) and it worked beautifully.

You can access remote models creating a model like this
(app/models/context.rb):

class Context < ActiveResource::Base
self.site = http://user:password@remoteapplication/
end

I just tested Hobo in the receiver end, I didn't try it the other way
around.

Regards,
Ignacio

El 10/01/12 10:22, JezC escribi�:

- --
Ignacio Huerta Arteche
http://www.ihuerta.net
Tel�fono: 0034 645 70 77 35
Email realizado con software libre
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8Mam4ACgkQBPlUJ6RHaOQX5QCfZHJ8le6l9QOXwQCJKtQyeHFK
C3AAnjRVJwMjtr4wGDr1ZnuiL4aixJdg
=Nf5+
-----END PGP SIGNATURE-----

Reply all
Reply to author
Forward
0 new messages