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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:53:27+00:00 2026-05-23T10:53:27+00:00

Here’s the setup: 1. Front end web site, Forms Authentication 2. Back end web

  • 0

Here’s the setup:
1. Front end web site, Forms Authentication
2. Back end web services (probably WCF), on a different network with HTTPS enabled.

So the code for the front end retrieves data through these back end web services.

The back end web service itself needs user requests to be authenticated. The back end web service isn’t just going to hand out data to the front end service trusting that it’s OK.

So how is this done? Right now the only thing that comes to mind is during login, store the password in the UserData field of the encrypted forms auth cookie so that future requests can use it to access the back end. But boy does that feel icky.

This seems like the sort of setup that would be very common, yet I can’t find any good ideas from googling.

Note that the front end will be an MVC application, though I don’t think MVC/Web Forms would matter — any solution would probably work just fine for both.

  • 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-23T10:53:28+00:00Added an answer on May 23, 2026 at 10:53 am

    Crickets from the audience……..

    The strategy I’ve decided to go with is the following:

    Upon login, the front end web site creates the normal forms authentication ticket. It also calls a backend web service login function which will also implement forms authentication. The ASPXAUTH cookie returned by the backend web service will be stored in the UserData property of the frontend forms authentication cookie.

    So now, when the frontend needs to call a backend method, it has the backend forms authentication cookie stored in the UserData of the frontend forms authentication ticket. It can attach that to the WCF HTTP call for authentication.

    The biggest danger I can see is that the session timeouts can get offset from one another, particularly if the user browses around some pages on the frontend that don’t require backend calls. In that case, the sliding timer will reset on the frontend but not on the backend. The best counter to that I can think of is to have all requests to the front end call a Ping() method on the backend if they’re actively logged in.

    Anybody see any holes to poke in this strategy?

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

Sidebar

Related Questions

Here is what I have: Dim cmsManager As New Telerik.Cms.CmsManager() Dim currentNode As Telerik.Cms.Web.CmsSiteMapNode
here is the site : http://www.notrepanorama.com at the bottom left, i use a jquery
Here is my text file forms. S1,F2 title including several white spaces (abbr) single,Here<->There,reply
Here is the setup: dynamically generates content for a number of items which need
Here is the field declaration in a form: max_number = forms.ChoiceField(widget = forms.Select(), choices
Here's a basic regex technique that I've never managed to remember. Let's say I'm
Here's a problem I ran into recently. I have attributes strings of the form
Here is the issue I am having: I have a large query that needs
Here's my scenario - I have an SSIS job that depends on another prior
Here is a simplification of my database: Table: Property Fields: ID, Address Table: Quote

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.