2

Where do I find the basic HTTP authentication credentials (username and password) in the incoming request to my server?

Is it somewhere in the Request object, or is there some other way to get them?

Running: IIS 7 - ASP.NET - .NET Framework 4 - C#

1 Answer 1

3

Basic authentication details will be in the Request.Headers, with the key: "Authorization"

It's a base64 encoded string, which you'll need to decode. Check out this post, there's a code sample in there that demonstrates picking that header apart.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.