Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting the Authorization header from an http request

Tags:

c#

asp.net

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.

like image 750
MBU Avatar asked Oct 06 '11 00:10

MBU


1 Answers

Easy:

string value = Request.Headers["Authorization"]

Not something you usually handle on your own though.

like image 200
csharptest.net Avatar answered Nov 03 '22 20:11

csharptest.net