How to read the "Authorization" header on a server code request?

I need to get request header information in Server Code, so I can do Basic Authentication in my service.

The service will be used for integrating our service with client other tools.

Example:

Cliente tools call Our REST server code using Basic Authentication Token in the Header.
Server code reads the the Basic Authentication Token, compares to the token in the database and if it is correct execute code and returns a success response.
If token not correct it return a error response.
2 people have
this question
+1
Reply