RestCode / WebApiProxy

MIT License
199 stars 91 forks source link

[Question] How to enable authentication #29

Closed wocar closed 9 years ago

wocar commented 9 years ago

Is it supported to enable the authentication? http://www.asp.net/web-api/overview/security/individual-accounts-in-web-api

faniereynders commented 9 years ago

Hi @wocar, yes the generated client still uses the standard HttpClient that comes out of the box from Asp.net WebApi, with which it is possible to implement the needed security like the Authorization header for example. You can access it by using the HttpClient property from the derived ClientBase.