Skip to content

Authentication

Ophir Oren edited this page Mar 13, 2020 · 3 revisions

REST.NET tries to make authentication simple by hiding different authentication logic behind abstracted authentication objects, having left to you to only setup the right Authenticator for you.

Right now REST.NET support the following authentication types:

  1. Basic Authentication
  2. OAuth2

IAuthentication

Authnticator abstration objects are implementing the IAuthentication interface. This interface includes only one method which receives the request from the RestClient and build the appropriate authentication headers. As an example, you could have a look at the BasicAuthenticator and OAuth2Authenticator implementations that come with REST.NET. If your application requires a special authentication, or one that is not yet supported by REST.NET you could implement your own using the IAuthentication interface.

Clone this wiki locally