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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:49:44+00:00 2026-05-26T17:49:44+00:00

I am creating a simple web API that returns JSON. It will perform simple

  • 0

I am creating a simple web API that returns JSON.

It will perform simple crud operations.

What is the best way to authenticate users, OAuth seems to be the main recommendation here but I’m looking for something I can implement myself simply, token based or and API key?

Any ideas suggestions tips would be great.

UPDATE: Forgot to mention, this API wont be for general consumption, its just for my own use but I want to make sure someone can’t get in too easily if they stumble on it.

  • 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-26T17:49:45+00:00Added an answer on May 26, 2026 at 5:49 pm

    First of all in order to build a good API you should use other people’s API to see how they work. To be RESTful an API key is used, which is just a really big random number or “cryptographic nonce”. But really this is just like immortal session id to look up a users authentication information, which isn’t that great. OAuth is great, if you want your own system kerberos is very secure.

    It is possible to hijack json responses, which is a pitfall against json. If the API key is required for each request, then the attacker can’t use this method.

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

Sidebar

Related Questions

I am interested in creating a simple web application that will take in user
I'm creating a simple API that creates typed classes based on JSON data that
I am creating a very simple web part that accepts entry on a form
i am creating a simple SOAP web service. i am to ensure that it
I am creating simple web-service client in Objective-C and found that creating separate class
I'm creating a simple tag system that allows me to link a tag to
I am creating a simple application with Django. I realized that I am doing
I'm creating an android app that is exchanging data with a web app via
I am creating a simple web application. I need to get reference to ServletContext
I am using JBoss 4.0 for creating a simple Web Service using the @WebService

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.