ASP.net core 2.0: Authenticating users via Harvest
At Advise we use Harvest for time tracking. On top of Harvest we have build a separate system that we use to keep track of statistics, vaccation periods and salary specifications. All information is fetched from Harvest. Login to the system is done using via Harvest.
We recently migrated this system to ASP.NET Core 2.0 and needed to update the type of authentication used the authentication process has been completely rewritten in ASP.NET Core 2.0.
To make it easier to use we put together a small library called Harvest Connect that helps with this integration. You can grab it from Nuget and the source code is available on Github. What follows is a how to guide on how to use Harvest Connect.
First of all you need to get a
clientId and a
clientSecret from Harvest. To do this visit the settings section of your Harvest site.
Once setup, grab the HarvestConnect package from Nuget:
dotnet add HarvestConnect
and modify your
ConfigureServices method in your
public void ConfigureServices(IServiceCollection services)