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 6550973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:16:50+00:00 2026-05-25T12:16:50+00:00

Should be a simple answer to my question, but on the web I seem

  • 0

Should be a simple answer to my question, but on the web I seem to get conflicting information.

Lets assume I have a simple API using Basic HTTP Authentication. A Mobile App uses my API on SSL to signup new users (POST) and (GET) ANY user information/profiles.

Question: Am I validating the User or the Application with HTTP Authentication?

As an example…

Lets say

api.somedomain.com/user/create

api.somedomain.com/user/{userID}

Scenario 1: the API uses Basic Authentication in the header and the application sends a developer usersname and password (not the user who is logged into thier app). Users can be created by the application and user accounts can be view by the app.

Cons: if someone finds out the user name and password the application is using they can create users and view an account.

Scenario 2: I validate the user over Basic Authentication not the application. this way the user can view their information when logged into the app.

Cons: the app cannot create a new user as they need to Authentication as a user first.

Now I know the first answer will be “use OAuth” but I would like an answer for basic Authentication in this case please.

Thanks in Advance

  • 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-05-25T12:16:50+00:00Added an answer on May 25, 2026 at 12:16 pm

    Well, in any case you have two users (two kinds of users). One kind is a living humanoid, the other kind is an application.

    The “application-type user” is allowed to create accounts, and the “humanoid” is allowed to view/edit his profile.

    For your server the problem should be simple:

    • First, see who is authenticated. Match the username and password and find the client.

    • If the client tries to create an account, or see a profile, check whether he is permitted to do it.

    Treat the mobile application just in the same way as a living human, and make them differ only in their permissions. Your mobile application may send you its own credentials when it tries to create an account, but as soon as some human provides his own login and password, let your mobile application use the ones provided by human.

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

Sidebar

Related Questions

Simple question, hopefully with a simple answer. I was under the impression I should
Should be simple but I couldn't find the answer, I would like to place
This should be simple, but the answer is eluding me. If I've got a
Using Google + Bing didn't yield an answer to what should be a simple
should be simple right? but have not found any anwsers :
This should seem simple enough, but can't figure it out. I was porting a
This seems like a noob question, but the simple answer is eluding me. I
All, This question probably has a very simple answer - something I'm overlooking. But
This should be a simple 100-level question, but I'm seeing something I don't expect
I've been doing some simple web programming using python, and I have a basic

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.