ConvertAPI / convertapi-library-dotnet

A .NET library for the ConvertAPI
https://www.convertapi.com
Other
22 stars 8 forks source link

Add Token authentication #29

Closed tomasr78 closed 1 month ago

tomasr78 commented 3 years ago

Add Tokenand Self Generated Token authentication. The endpoint should receive two parameters Token and ApiKey.

https://v2.convertapi.com/convert/docx/to/pdf?Token={Token}&ApiKey={ApiKey}

The Token authorization with different tokens can be used in the application and it should be an easy way to change Token parameters on runtime. That's the main difference between Token and Secret authentication.

Related https://github.com/ConvertAPI/convertapi-dotnet/issues/30

tomasr78 commented 3 years ago

Finally, we have four authentication methods:

  1. Authentication using static Secret variable
public static string Secret;
  1. Authentication using static Token variable
public static string Token;
  1. Authentication using Secret constructor
public ConvertApi(string secret)
  1. Authentication using Token constructor
public ConvertApi(string token)
tomasr78 commented 6 months ago

Create a token authentication demo and add a description in the readme file.

tomasr78 commented 1 month ago

This issue is no longer relevant. A new method for authentication can be found at https://github.com/ConvertAPI/convertapi-dotnet/issues/53.