Pass credential from asp.net to sharepoint

Hello,

I have a aspx page created on sharepoint, that is being opened on a click of a button from asp.net app.
The page opens but I am first being prompted for an user id and password.
How can I pass the users AD credentials to the sharepoint page, when the asp.net button is clicked?
My asp.net app has an anonymous authentication.
subhorachanaAsked:
Who is Participating?
 
quihongConnect With a Mentor Commented:
If you treat your asp.net app (the anonymous one) and the SharePoint aspx page as two separate websites, linking them via a regular href link (not passing any authentication or whatever) it should work. Does that make sense?

0
 
quihongCommented:
I do not think passing the authentication will be possible since your asp.net app is using anonymous authentication. If its anonymous, what credential do you expect to pass?

What exactly does your button do? If you open the aspx SharePoint page directly (without using your button) does it prompt for authentication? If you are using integrated authentication it shouldn't prompt you.
0
 
subhorachanaAuthor Commented:
My asp.net app has anonymous authentication.
On click of button, it just does a response.redirect to a sharepoint aspx page.
Sharepoint has AD suthentication.

I believe what you say is correct. On production, the sharepoint page should automatically open up, because right now it does not ask for authentication .
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.