Reputation: 40032
I have a web application which has Forms Authentication however one of the pages has to be accessed via a 3rd party application. This 3rd party app sends its request with querystring parameters and data is returned. This page has been setup so Forms Authentication does not apply to it.
I do not want this data available if someone finds the URL that the 3rd party app is using (and their is a high chance of this happening) and they put it in the browser.
How is this possible?
Upvotes: 0
Views: 295
Reputation:
I don't know if this will work for the situation you are describing, but you might try calling
MembershipUser User = Membership.GetUser();
In your Page_Load method for the page in question and checking to see if a valid user was returned. This is probably not a perfect solution though, as it would only block authenticated users.
What are the circumstances that would allow a user to find the link to this page? Also, do you have any sort of control over how the 3rd party app is sending its request?
Upvotes: 0
Reputation: 63126
Well, depending on what you are doing there a few things.
Added Detail
Per your request, here is a link on how to setup basic authentication. Basic IIS Authentication.
This should work out well in your case.
Upvotes: 1