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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:51:40+00:00 2026-05-12T16:51:40+00:00

I have a site that uses the SqlMembershiprovider. Its is a webshop. The user

  • 0

I have a site that uses the SqlMembershiprovider. Its is a webshop. The user logs on with his username and password there.

Apart from that there is controller that is responsible for displaying delivery details for orders, that are imported from another system. These orders have no connection to users in the membershipsystem. To display delivery details you have to give the ordernumber and a token that is printed on the invoice.

To allow access I would like to implement a custom membershiprovider that is used only for this single controller. Is it feasible to use 2 different providers for one application?

EDIT

There are a couple of pages that the user can access once he provided the ordernumber and token.

  • 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-12T16:51:41+00:00Added an answer on May 12, 2026 at 4:51 pm

    I don’t think you need a separate membership provider. Just make that action and associated actions public (don’t decorate with the AuthorizeAttribute). Then require that the order number and invoice token provided be valid. That is, if you have the order number and it’s associated token, then you get to display the delivery details. You can check this by just verifying that they match in the data provided by the other system.

    [AcceptVerbs( HttpVerbs.Post )]
    public ActionResult DeliveryDetails( string orderNumber, string invoiceToken )
    {
          var order = otherDb.Orders
                             .Where( o => o.OrderNumber == orderNUmber
                                          && o.InvoiceToken == invoiceToken )
                             .SingleOrDefault();
    
          if (order == null)
          {
              return View("Error");
          }
    
          return View(order);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a site that uses PHP includes. There are snippets of code in
I have a site that uses a GET form to allow a user to
I have a site that uses the scrollintoview plugin (https://github.com/litera/jquery-scrollintoview), but there is some
I have a site that uses a large centered background image, which naturally loads
I have a site that uses a menu control tied to a sitemapdatasource which
Ok, so I have a site that uses the google maps API, and I
I have a PHP site that uses a fairly common authentication scheme. The entire
I have an application that uses Django 1.3 installed in python's site-packages. I want
I have a site that uses cURL to access some pages, stores the returned
I have a site that uses classic ASP and a database in Access 2007

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.