Applyze.Shared.Authentication 1.0.6.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Applyze.Shared.Authentication --version 1.0.6.2                
NuGet\Install-Package Applyze.Shared.Authentication -Version 1.0.6.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Applyze.Shared.Authentication" Version="1.0.6.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Applyze.Shared.Authentication --version 1.0.6.2                
#r "nuget: Applyze.Shared.Authentication, 1.0.6.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Applyze.Shared.Authentication as a Cake Addin
#addin nuget:?package=Applyze.Shared.Authentication&version=1.0.6.2

// Install Applyze.Shared.Authentication as a Cake Tool
#tool nuget:?package=Applyze.Shared.Authentication&version=1.0.6.2                

Applyze.Shared.Authentication

This package includes AspNetCore 2.2 Authentication implementations.


Installation

NuGet Package

You can find NuGet Package and instructions from here

  • Open Package Manager Console and run following command:
Install-Package Applyze.Shared.Authentication
  • Or just add following package reference to .csproj file:
    <PackageReference Include="Applyze.Shared.Authentication" Version="1.0.3" />
  • Finally you should set the base url of tenant once in your application start:
Applyze.Shared.Authentication.Constants.TenantBaseUrl = "https://mycustomdomain.api.applyze.com/tenant/v1/";

Set-Up

  • Go to Dependency Injection builder
  • Add following implementation into IServiceCollection:
services.AddScoped<ITenantService,TenantService>();

Usage

Sample:

  • Add ITenantService type parameter to your class constructor, keep it and use it:
//...
using Applyze.Shared.Authentication.Services;
//...

public class YourClass()
{
    private readonly ITenantService _service;
    public YourClass(ITenantService service) //<-- Constructor
    {
        _service = service;
    }

    public async Task<IActionResult> YourAction(string apiKey)
    {
        //...
        var result = await service.AuthenticateApiKeyAsync(apiKey);  // < --- Just use like here.
        //...
    }
}

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.2 is compatible.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Applyze.Shared.Authentication:

Package Downloads
Applyze.Shared.Authentication.AspNetCore

Applyze Authentication implementation for AspNetCore.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.5.1 1,611 10/16/2020
1.5.1-pratikislem 90 6/27/2024
1.5.0 2,792 5/8/2020
1.4.0 1,361 5/8/2020
1.3.0 1,747 4/20/2020
1.2.1 3,066 1/29/2020
1.1.0-pre1 1,540 11/18/2019
1.0.7-pre1 1,127 10/24/2019
1.0.6.2 1,182 7/24/2019
1.0.6.1 1,293 7/24/2019

Released