Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication #12

Open
ghost opened this issue Apr 30, 2013 · 2 comments
Open

Authentication #12

ghost opened this issue Apr 30, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 30, 2013

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!

@ginjo
Copy link
Owner

ginjo commented May 6, 2013

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

See this previous issue: #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.

@ghost
Copy link
Author

ghost commented May 24, 2013

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant