Open bnaya-payoneer opened 5 months ago
- Security Responsibility
- JWT
- Claims
- Authorization
OPEN API:
Serialization
Route
Exception Error standard
Response
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;
}
}
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;
}
}
}
RISK:
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
[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
NLN - Infra Team Upgrade Status
Old Open API
Multi Frameworks
[ ]
NewtonsoftJsonshould die[ ] AddPayoneerStandard & UsePayoneerStandard extension method: should encapsulate must have settings and injections
[ ] Suggestion & Enforcement should govern by Static Code Analyzer
[ ] Use grouping NuGet to bundle different infra NuGets together
[ ] Error Handling