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

  • SEARCH
  • Home
  • 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 8198765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:01:13+00:00 2026-06-07T06:01:13+00:00

I have made an json api for a database which has some products, and

  • 0

I have made an json api for a database which has some products, and some users who can add and search for these products. So a user have a login/pass, with these credentials I can do POST api calls.

I now want to make an iPhone / android app, and I’m wondering how to handle these post requests : first time I’ll ask the user credentials, then I’ll be able to do one POST request. But where do I store these credentials ? on the mobile ? should it be persisted then at the next application start, the login will still be there ?

Any helpful link is welcomed.

  • 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-07T06:01:15+00:00Added an answer on June 7, 2026 at 6:01 am

    I wouldn’t store plain text or encrypted login credentials at all but implement an OAuth-style login procedure where the user logs in once, the server validates it and generates a relatively long random string as authentication token (compared to usual user passwords).

    The advantage is that this random string is gibberish. If that token would leak to a third party, they basically have only a key to your service and not a universal key that could grant access to other services, too (because people are usually too lazy to memorize different passwords for different places and that can be exploited).

    So basically you would do your users a favor and increase their security.

    In case of Android, that token can be stored in your app’s private storage, which can be considered as safe because other apps don’t have access permission (not considering rooted or compromised devices, but that shouldn’t be your problem).

    For authentication with your server you just add that token as an additional header value for example to your app’s HTTP requests.

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

Sidebar

Related Questions

I have some code that requests some JSON from an API. When data is
I have this 'web service' I made that when accessed: http://192.168.0.1/api/v1/search/?query=thequery returns a JSON
I have an API in php, that sends data in JSON format. I made
Using the Twitter Search API I have attempted to download JSON data from a
I have made a multiplayer game using the GameKit Framework where 2 iPhones/iPods can
I have made a game which is nearly identical to Popcap's Atomica. ( http://www.popcap.com/gamepopup.php?theGame=atomica
I have made a generic Observer interface and an Observable class, but can't compile
I have made a basic ascx control which is just a panel with a
I am using asp.net mvc with jquery... I have made a json call to
Inside of a jQuery plugin I made I have: $.getJSON(base_url,{ agenda_id:defaults.id, action:defaults.action+defaults.type, output:defaults.output },function(json){

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.