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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:20:40+00:00 2026-06-12T00:20:40+00:00

I have various c# rest services performing normal CRUD tasks on a database, For

  • 0

I have various c# rest services performing normal CRUD tasks on a database,

For example, I have a rest service to add a customer to my customers database table which will expect XML as indicated below,

<CreateCustomerRequest>
    <Name>Customer name</Name>
    <Surname>Customer surname</Surname>
</CreateCustomerRequest>

Anyone that knows the URL and the proper XML structure can therefore call the rest service and insert a customer into my database. What is the best way to make sure that unauthorized inserts are not performed? Perhaps a key send with the request calculated as MD%([name field] + [surname field] + [shared client/server key]??

  • 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-12T00:20:42+00:00Added an answer on June 12, 2026 at 12:20 am

    You could use Basic Authentication with your REST service.
    Each call will need to send the auth information, or the call will fail with a 401.

    Basically, the following needs to be appended to the content header of the request:

    Authorization: Basic YWRtaW46YWRtaW4x
    

    where YWRtaW46YWRtaW4x is base64 encoded username:password

    You could also implement SSL and have your client send along a certificate with each request if you need that level of security.

    Do not attempt to invent your own security unless you’re an expert in that area.

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

Sidebar

Related Questions

I have a WCF REST Service which accepts a JSON string One of the
I have a REST service that's reasonably complete and will be used with an
I have a REST web-service interface that calls-down to a service layer which orchestrates
I have a web application providing more than 30 REST services (using Jersey) to
I have several asp.net website projects for various sites. Currently I want to add
I have various class which perform save and update operations of GUI elements, it
I have various time-series I'd like to correlate and present as either a csv-file
I have various settings in my ccnet.config file and wish to pass them to
I have various pieces of generated HTML/JS that I load into Activity with WebView#loadDataWithBaseURL.
We have various related session variables for a complex page that has various things

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.