Giter VIP home page Giter VIP logo

felles-utility-dotnet's Introduction

felles-utility-dotnet

Build status

felles-utility-dotnet's People

Contributors

aaronarrick avatar aknutsen avatar asjafjell avatar henningnormann avatar johnksv avatar kristianenge avatar rocketfarmsteinar avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

felles-utility-dotnet's Issues

Support for netstandard

We need to use this library from a library.
When do you plan to migrate it to netstandard ?

I see there is an active pull-request - what is the status of that ?

NullReferenceExceotion når brukes i .Net6 applikasjon

Har oppdatert ett prosjekt som har brukt en gammel versjon av denne pakken. Når jeg da bruker nuget-pakken i .net6 applikasjonen, så ender jeg opp med en nullreference exception i System.Security.Cryptography.Xml.SignedXml. Er dette ett kjent problem?

    System.Security.Cryptography.Xml.SignedXml.IsKeyTheCorrectAlgorithm(System.Security.Cryptography.AsymmetricAlgorithm, System.Type) in SignedXml.cs
    System.Security.Cryptography.Xml.SignedXml.CheckSignedInfo(System.Security.Cryptography.AsymmetricAlgorithm) in SignedXml.cs
    System.Security.Cryptography.Xml.SignedXml.CheckSignature(System.Security.Cryptography.AsymmetricAlgorithm) in SignedXml.cs
    System.Security.Cryptography.Xml.SignedXml.CheckSignatureReturningKey(out System.Security.Cryptography.AsymmetricAlgorithm) in SignedXml.cs
    Difi.SikkerDigitalPost.Klient.XmlValidering.ResponseValidator.ValidateSignatureAndCertificate(string, string)
    Difi.SikkerDigitalPost.Klient.XmlValidering.ResponseValidator.ValidateHeaderSignature()
    Difi.SikkerDigitalPost.Klient.XmlValidering.ResponseValidator.ValidateEmptyQueueReceipt()
    Difi.SikkerDigitalPost.Klient.Api.SikkerDigitalPostKlient.SecurityValidationOfEmptyQueueReceipt(System.Xml.XmlDocument, System.Xml.XmlDocument)
    Difi.SikkerDigitalPost.Klient.Api.SikkerDigitalPostKlient.HentKvitteringOgBekreftForrigeAsync(Difi.SikkerDigitalPost.Klient.Domene.Entiteter.Kvitteringer.Kvitteringsforespørsel, Difi.SikkerDigitalPost.Klient.Domene.Entiteter.Kvitteringer.Forretning.Forretningskvittering)

I SignedXml.cs ender det opp med at expectedType er null.

private static bool IsKeyTheCorrectAlgorithm(AsymmetricAlgorithm key, Type expectedType)
        {
            Type actualType = key.GetType();

            if (actualType == expectedType)
                return true;

            // This check exists solely for compatibility with 4.6. Normally, we would expect "expectedType" to be the superclass type and
            // the actualType to be the subclass.
            if (expectedType.IsSubclassOf(actualType))
                return true;

            //
            // "expectedType" comes from the KeyAlgorithm property of a SignatureDescription. The BCL SignatureDescription classes have historically
            // denoted provider-specific implementations ("RSACryptoServiceProvider") rather than the base class for the algorithm ("RSA"). We could
            // change those (at the risk of creating other compat problems) but we have no control over third party SignatureDescriptions.
            //
            // So, in the absence of a better approach, walk up the parent hierarchy until we find the ancestor that's a direct subclass of
            // AsymmetricAlgorithm and treat that as the algorithm identifier.
            //
            while (expectedType != null && expectedType.BaseType != typeof(AsymmetricAlgorithm))
            {
                expectedType = expectedType.BaseType;
            }

            if (expectedType == null)
                return false;   // SignatureDescription specified something that isn't even a subclass of AsymmetricAlgorithm. For compatibility with 4.6, return false rather throw.

            if (actualType.IsSubclassOf(expectedType))
                return true;

            return false;
        }

New PublicKeyToken in 1.2.1 version

No way to resolve conflict between "Difi.Felles.Utility.Resources, Version=1.2.1.0, Culture=neutral, PublicKeyToken=03cc8be9ca792550" and "Difi.Felles.Utility.Resources, Version=1.1.0.0, Culture=neutral, PublicKeyToken=6e6972f540d5419a". Choosing "Difi.Felles.Utility.Resources, Version=1.2.1.0, Culture=neutral, PublicKeyToken=03cc8be9ca792550" arbitrarily.

not possible to use now together difi-sikker-digital-post-klient v 2.0.3 which depends on 1.2.1 and difi-oppslagstjeneste-klient or digipost-signature-api-client using 1.0.0 - 1.2.0 versions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.