rfm icon indicating copy to clipboard operation
rfm copied to clipboard

Authentication

Open ghost opened this issue 12 years ago • 2 comments

I'm trying to include a simple user authentication into my application, based on a filemaker database (using the ginjo-rfm gem). I've written several user authentication systems in rails and ActiveRecord, but not with ginjo-rfm. I'm only looking to base the authentication on :username and :password (both plain text) allready stored in the FM-database. I'm totally clueless on how to do this without ActiveRecord as an ORM/wrapper.

Progress so far: The Rails app is connected to the DB trough RFM and it works as a charm, and I'm able to get and set to the database without problems. The problem occurs when trying to write the model and controller for user authentication, ActiveRecord standard methods like 'find_by', or 'where' won't work. Is there anyway to rephrase the way the authentication logic is written?

Has anyone done this? Could someone point me in the right direction? If so, I'll be forever grateful!

ghost avatar Apr 30 '13 15:04 ghost

You'll want to separate your application authentication from your user-session authentication.

See this previous issue: https://github.com/ginjo/rfm/issues/6

I use a heavily modified (to work with Rfm instead of ActiveRecord) version of the original acts_as_authenticated plugin to provide authentication & access control to my rails projects with Filemaker as the backend. Maybe one of these days I'll wrap it up as a gem, but right now it's pretty specific to my projects.

ginjo avatar May 06 '13 04:05 ginjo

I've seen the previous issue, but can't seem to get the reason for using that method. Is there any way you can let me in on the code?

Thanks!

ghost avatar May 24 '13 08:05 ghost