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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:20:45+00:00 2026-06-06T01:20:45+00:00

I am learning and using Web API and need to implement following Authentication mechanism

  • 0

I am learning and using Web API and need to implement following Authentication mechanism:

Very First call to Web API will be a Handshaking (Login and token
sharing
). Login Method of the Web API will be called with the proper
credentials, once approved a GUID based Token will be returned to the
Client( A Jquery or Windows based). Token will be expired after some
configurable time.

Till then, client should be able to communicate with the WebAPI with
sharing the same token value with every requests
, thus wouldn’t need
to authenticate each call.

For having Token in each call, it is quite possible to have it in each
QueryString or have it in each param of the Web API method.

But, I am looking for the possibilities Where Token can be embedded with the HTTPRequestHeader via JQuery (using AJAX calls) or Windows based clients. I would like if you guys could help me to identify the fair approach to implement this system and perils 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-06-06T01:20:47+00:00Added an answer on June 6, 2026 at 1:20 am

    You can modify the headers in jQuery using beforeSend method when using jQuery Ajax.

    Adding / Modifying HTTP Request Headers using HttpClient is no problem.

    Maybe Thinktecture.IdentityModel.Http will support your described scenario soon: Thread: Web API Sample for Thinktecture.IdentityModel at WebApiContrib Google Group

    Some token based authentication mechanism like SWT and SAML 1.1 / 2.0 are already implemented in Thinktecture.IdentityModel.Http.

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

Sidebar

Related Questions

I'm trying to setup a new web-application for learning purposes using the newest technologies:
As a learning project, I'm using MongoDB with Bottle for a web service. What
I am doing an e-learning application using CakePHP. The problem is that I need
I'm very interested in learning about the new feature in HTML5 called web sockets.
I am a manual tester and am learning automation testing and using Selenium web
I am looking at doing a small web application for learning purposes, using .NET.
I'm learning Android development using Pro Android Web Apps (Apress, Auths: Damon Oehlman &
I'm learning Python using Learn Python The Hard Way . It is very good
I'm curious if anyone is using any web app that is extremely simple (very
In designing and learning about an ASP.NET Web API I've come across a few

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.