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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:16:47+00:00 2026-06-13T07:16:47+00:00

I am creating an authentication controller for my web api. Essentially, when a user

  • 0

I am creating an authentication controller for my web api. Essentially, when a user of my app creates an account, my controller needs to receive the user’s data, and the password (which is not part of the type that contains the rest of the user’s data).

Only this one time is the password sent unhashed to the web api. This controller returns a hash salt to the user and he uses that for auth requests henceforth. But my problem is that I can’t bind the password to the body along with the user object being created, because web api only accepts one body parameter, and the user info is going in there. So … this leaves me with the URI for the password. Is this less secure than passing it in the body? Is there a better way to craft this request?

Thanks!

  • 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-13T07:16:48+00:00Added an answer on June 13, 2026 at 7:16 am

    I am not sure I understand your mechanism correctly. First of all if you are ever sending password unencrypted (eg. when user is registering) make sure you use SSL. Same applies to sending salt (to prevent dictionary attacks on user passwords).

    If you dont want to send password as a part of your action parameter(s) you can always use http headers and retrieve password string using HttpRequestMessage.Headers property.

    Dont know what you mean by that web api accepts only one body parameter, but remember that the object you are sending to Web API action can be complex, ie. can be composed of both user object and a password string.

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

Sidebar

Related Questions

I am creating an MVC Intranet app with windows authentication. The data being accessed
I'm curious about the best practice in creating web services which support both XML
I'm creating a user authentication system for my site. I want to add a
I'm creating an application which uses LDAP authentication. However, I'm stuck on the LDAP_SEARCH()
I am creating an application which uses the facebook api, and I want facebook
I am following Michael's ROR tutorial and creating user authentication system. There is an
I'm creating a multi-tenancy web site which hosts pages for clients. The first segment
One controller in my app needs to be accessible by users authenticated against an
I have just succeeded in creating oAuth authentication for my twitter application using PHP.
I implemented Forms authentication by creating Default.aspx and custom login page named login.aspx .

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.