ProductCatalogAuthentification 1.0.2
dotnet add package ProductCatalogAuthentification --version 1.0.2
NuGet\Install-Package ProductCatalogAuthentification -Version 1.0.2
<PackageReference Include="ProductCatalogAuthentification" Version="1.0.2" />
<PackageVersion Include="ProductCatalogAuthentification" Version="1.0.2" />
<PackageReference Include="ProductCatalogAuthentification" />
paket add ProductCatalogAuthentification --version 1.0.2
#r "nuget: ProductCatalogAuthentification, 1.0.2"
#:package ProductCatalogAuthentification@1.0.2
#addin nuget:?package=ProductCatalogAuthentification&version=1.0.2
#tool nuget:?package=ProductCatalogAuthentification&version=1.0.2
Product Catalog Authentication Integration Guide
Overview
This guide provides step-by-step instructions for integrating ProductCatalogAuthentication into your host project. It includes configuration details and service installation steps.
1. Configure Authentication in appsettings.json
In your host project, add authentication credentials for the Catalog API inside appsettings.json:
{
"ProductCatalog": {
"Authentication": {
"Username": "UserNameExample", change with actual user from ProductCatalog user from setting
"Password": "PasswordExample" // change with actual passowrd from ProductCatalog password from setting
},
"BaseUrl": "https://producttCatalogExample" // change with product catalog base api
}
}
Configuration Details:
- Username & Password: Replace with actual credentials required to authenticate with the Catalog API.
- BaseUrl: Ensure this points to the correct API endpoint.
2. Install Product Catalog Authentication in Your Project
To integrate ProductCatalogAuthentication, add the following line in the Startup.cs file of your host project:
services.InstallProductCatalogAutentification(Configuration);
Installation Steps:
- Open the Startup.cs file of your project.
- Locate the
ConfigureServicesmethod. - Add
services.InstallProductCatalogAutentification(Configuration);inside the method. - Ensure that your project correctly references
ProductCatalogAutentification.
3. Additional Notes
- Ensure that the
BaseUrlinappsettings.jsonis accessible and correct. - Double-check authentication credentials before deploying to production.
- If any issues arise, verify that
InstallProductCatalogAutentificationis correctly registered in your dependency injection container. - Restart your application after making changes to ensure proper configuration loading.
4. Troubleshooting
Common Issues & Fixes
| Issue | Possible Cause | Solution |
|---|---|---|
| Authentication fails | Incorrect username or password | Verify credentials in appsettings.json |
| API connection issues | Wrong BaseUrl |
Ensure BaseUrl points to the correct API endpoint |
| Service not recognized | Missing package reference | Ensure ProductCatalogAutentification is installed and properly referenced |
If you need further assistance, refer to the official documentation or contact support.
License
This package is distributed under the MIT License.
| Product | Versions 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- Microsoft.Extensions.Configuration.Abstractions (>= 3.1.32)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 3.1.32)
- Microsoft.Extensions.Http (>= 3.1.32)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.