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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:46:16+00:00 2026-06-03T18:46:16+00:00

I have a wcf webhttp service which uses forms authentication to authenticate users. This

  • 0

I have a wcf webhttp service which uses forms authentication to authenticate users. This works fine if the ticket comes in the cookie collection or in the url.

But now I want to send the string of the forms auth ticket in a custom http header and change the forms auth module to check for that header instead of the cookie.

I think it should be easy to extend forms auth to achive this, but could not find any resources of how to. Can you point me in the right direction ?

here’s how my authentication flow would work,

  1. A client calls the authenticate method with the username and pwd
  2. Service returns the encrypted ticket string
  3. Client send the received ticket string in a http header with every subsequent request
  4. Service checks for auth header and validates the auth ticket
  • 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-03T18:46:18+00:00Added an answer on June 3, 2026 at 6:46 pm

    FormAuthentication module is not extendible, but you could write your own authentication.
    It is very simple:

    Authentication(2):

    
    var formsTicket = new FormsAuthenticationTicket(
        1, login, DateTime.Now, DateTime.Now.AddYears(1), persistent, String.Empty);
    var encryptedFormsTicket = FormsAuthentication.Encrypt(formsTicket);
    //return encryptedFormsTicket string to client
    

    Service call with attached ticket(4):

    
    var ticket = FormsAuthentication.Decrypt(encryptedFormsTicket)
    //extract authentication info from ticket: ticket.Name
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have WCF service running from within a Windows Service. This is working fine
I've created the following RESTful WCF service, which works just fine when running it
I currently have a webHttp binding WCF restful service, it works great over http,
I have a custom ServiceAuthorizationManager implemented in wcf webhttp service to do api key
So I have wcf rest service which succesfuly runs from a console app, if
I have a WCF service which accepts a string as a paramter for one
I have a WCF service that works ok if I create the service without
I currently have a WCF service with webHttp bindings, im attempting to increase the
I have made a REST Web service, that works with Visual Studios WCF Test
I have created a WCF WebHttp Service using the following article as a guideline..

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.