I have an asp website.I have a page which is visible to logged in users only.My problem is i need to show this page to some one else with out logging in.Want to make it anonymous.How can i achieve this?
Asked
Active
Viewed 79 times
0
-
1One option is to bypass Authentication module by User's remote ip. You can setup a guest account and give him pass if the IP address is your friend's. – Jonas T Feb 10 '14 at 04:55
-
@JonasT Is it possible to make the page anonymous from web.config? – JIKKU Feb 10 '14 at 04:59
-
Shekhar's solution will do but the will be visible to anyone without any restriction, not just your friend. – Jonas T Feb 10 '14 at 05:01
-
are you using form authentication? – A.T. Feb 10 '14 at 05:07
-
You need to choose one verification method here, mate. Either IP address verification or private key via query string should work. Eg: give "yourpage.aspx?key=qpyehEWFTYf5wxzM" to your friend and you can check that key in your code and pass him through. In
section add – Jonas T Feb 10 '14 at 05:12. When you bypass him, you need to set User.Identity(ticket.Name) with yourfriend@hisdomain.com. -
See i have set my page as anonymous and passed a key as you said.But the page is not loading the style – JIKKU Feb 10 '14 at 05:19
-
It seems that your FBA is protecting all assets inside that folder. If it is OK for you to reveal any assets(images, stylesheets, js,etc) to public except .aspx files, set runAllManagedModulesForAllRequests="false" in module like
. If you want to protect those assets too, you need to allow every single resources(js, css, images, docs) used by that page of your friend. – Jonas T Feb 10 '14 at 05:25 -
Ya thats the problem.It may affect the security of the website. – JIKKU Feb 10 '14 at 05:34
-
Do the second part then, setup all assets used by that page with
for your friend. – Jonas T Feb 10 '14 at 05:57
2 Answers
0
Create a guest account & log the anonymous user automatically to that guest account when he visits particular page.

Venkatesh K
- 4,364
- 4
- 18
- 26
0
You can use this code in you web.config
file to show some file without loging.
<location path="yourpage.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
It will allow for anonymous access.
Some links
-
-
-
Shekhar's solution will do but the will be visible to anyone without any restriction- Jonas T – JIKKU Feb 10 '14 at 05:03
-
OP is asking for some users only not all, if page is visible to all then there is no sense for "login" – A.T. Feb 10 '14 at 05:04