Setting Authorization Header of HttpClient

前端 未结 21 2186
粉色の甜心
粉色の甜心 2020-11-22 14:53

I have an HttpClient that I am using for a REST API. However I am having trouble setting up the Authorization header. I need to set the header to the token I received from d

21条回答
  •  误落风尘
    2020-11-22 15:38

    Oauth Process flow is complex and there is always a room for one error or another. My suggestion will be to always use the boilerplate code and a set of libraries for OAuth authentication flow.It will make your life easier.

    Here is the link for the set of libraries.OAuth Libraries for .Net

提交回复
热议问题