MBU
MBU

Reputation: 5098

Getting the Authorization header from an http request

Does anyone know how to get the authorization header value from an http request in asp.net? I've been trying to google it but i haven't found anything on retrieving the authorization header values.

Upvotes: 15

Views: 26375

Answers (1)

csharptest.net
csharptest.net

Reputation: 64218

Easy:

string value = Request.Headers["Authorization"]

Not something you usually handle on your own though.

Upvotes: 24

Related Questions