Authenticate my HttpClient

jrahma 111 Reputation points
2021-07-02T19:37:44.34+00:00

Hi,

How can I authenticate my HttpClient so nobody can go and the URLs using another client, for example browser or Postman.

Thanks,
Jassim

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,322 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,129 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 57,401 Reputation points
    2021-07-03T16:16:08.993+00:00

    Authentication just verifies the user, not the client application. Once you publish a web site, it’s an open api that can be used by any tool that can make web requests.

    You need to be sure the site does not allow abuse, that is don’t assume you code is calling it.

    0 comments No comments