Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9106605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T02:22:38+00:00 2026-06-17T02:22:38+00:00

I have a Rails app with an iOS mobile client. So far, I’ve had

  • 0

I have a Rails app with an iOS mobile client.

So far, I’ve had the iPhone client send HTTP requests to the normal URLs. I want to replace this with a proper API. I’m on Rails 3, and I’m using Authlogic for authentication.

I have watched the railscasts on versioned apis and securing APIs. But since I’m already using authlogic for authentication, I think reimplementing token creation would be unnecessary?

I created the API just as Ryan Bates suggests in this episode with a controller under app/controllers/api/v1/. I have corresponding views with RABL in views/api/v1.

My controller is

module Api
  module V1
    class RecordsController < ApplicationController
      respond_to :json

      def index
        status = RecordStatus.where("name = ?", "processed").first
        @records = current_user.records.where("record_status_id = ?", status.id)
      end

      def show
        @record = Record.find(params[:id])
      end
    end
  end
end

Basically, I’ve read a lot on the different options to implement (including a bunch of answers on SO) and I’m just really stumped as to what’s the best way for me to implement authentication, securely. Should I go to oauth? Can I do it with authlogic? Which option would make it easy to use from the iOS side? Which option is easiest to implement?

Any guidance would be helpful.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T02:22:40+00:00Added an answer on June 17, 2026 at 2:22 am

    Perhaps you could use the single access token stuff that’s in authlogic already?

    http://rubydoc.info/gems/authlogic/Authlogic/Session/Params

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Rails app that has 2 clients -- an iOS app reads/writes
I have a Rails app and trying to make a remote form, so far
I have a Rails app on Heroku with code to send a UDP packet
I have a Rails app that needs to send out emails with a particular
I have an rails app which redirects wrong urls to /. I made 404.html
So I have a rails app that receives dates from an ios app. One
I have a native iOS app that can be called from Mobile Safari in
I have some Rails web service, and iOS iPad app. This iPad app need
I have an rails app on full screen mode on iOS safari. Every time
I have a basic iOS app that interfaces with a Rails app. The idea

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.