bnaya-payoneer / todo

0 stars 0 forks source link

Infra NuGets #3

Open bnaya-payoneer opened 5 months ago

bnaya-payoneer commented 5 months ago
bnaya-payoneer commented 4 months ago
  • Security Responsibility
    • JWT
    • Claims
    • Authorization

OPEN API:

Image

Image

bnaya-payoneer commented 4 months ago
public class ErrorResponse
    {
        [JsonProperty("error")]
        public string Error { get; set; }
        [JsonProperty("error_description")]
        public string ErrorDescription { get; set; }

        [JsonProperty("error_details")]
        public ErrorDetails ErrorDetails { get; set; }
    }
public class ErrorDetails
    {
        [JsonProperty("code")]
        public int Code { get; set; }

        [JsonProperty("sub_code")]
        public int SubCode { get; set; }

        public bool ShouldSerializeSubCode()
        {
            return SubCode != 0;
        }
    }
bnaya-payoneer commented 4 months ago

Multi version should be deprecated repo

using System;
using System.Collections.Generic;
using System.Linq;

namespace Payoneer.SecurityInfrastructure.SecurityMiddleware.Swagger
{
    [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class)]
    public sealed class OnlyAppliesToAttribute : Attribute
    {
        private IEnumerable<string> _versions;

        public OnlyAppliesToAttribute(params object[] versions)
        {
            _versions = versions.Select(o => o.ToString());
        }
        public IEnumerable<string> GetVersions()
        {
            return _versions;
        }
    }
}
bnaya-payoneer commented 4 months ago

RISK:

bnaya-payoneer commented 4 months ago

TODO: check it

Search

infrastructure-infrastructure-webapi .NET 4.6.1 Payoneer.ServicesInfra.WebApi.ExceptionHandling
Payoneer.ServicesInfra.WebApi.ClientIdentification
Payoneer.ServicesInfra.WebApi.Models
Payoneer.ServicesInfra.WebApi.SystemIdentification

Payoneer.Infrastructure.Net Payoneer.Infrastructure.NetCore.Extensions.Swagger ? (check usage in template)

infrastructure-webapi-infrastructure .NET 4.6.1, .NET Core 3.1, .NET Standard 2.0, Payoneer.ServicesInfra.Controllers
Payoneer.ServicesInfra.Controllers.NetCore
Payoneer.ServicesInfra.WebAPI.Validation
Payoneer.ServicesInfra.InitializeDefinitions

bnaya-payoneer commented 4 months ago

infrastructure-infrastructure-webapi

Image

bnaya-payoneer commented 4 months ago

Modern Health Check

bnaya-payoneer commented 4 months ago

Swager sample: https://github.dev/Amitpnk/Onion-architecture-ASP.NET-Core/blob/e4c1d43ec4923db0784a2264f8fac2e86053a51c/src/OA.Infrastructure/Extension/ConfigureServiceContainer.cs#L127#L138

bnaya-payoneer commented 4 months ago

[3:19 PM] Arnold Simha https://youtu.be/E_bkN_KperE?si=U2yju6eZf8ldNHOy like 2 .NET Developers should be using dotnet-outdated to update their project's references - YouTube .NET Developers should be using dotnet-outdated to update their project's references https://github.com/dotnet-outdated/dotnet-outdated