sou12y-archive / aadhaarapi.net

Aadhaar API for .NET is a client library that provides an easy way to interact with the UIDAI Aadhaar services.
http://souvikdc9.github.io/aadhaarapi.net
GNU Lesser General Public License v3.0
33 stars 37 forks source link

API and HTTP errors with version 1.6 #10

Open himadrinath opened 6 years ago

himadrinath commented 6 years ago

@souvikdc9 am i doing wrong or missing anything? can u tell

1

outgoing request

`

<Meta udc="ABCDE.20150101.00001" fdc="NA" idc="NA" pip="NA" lot="G" lov="21,78,0" xmlns="" />
<Skey ci="20200916" xmlns="">k7RZl0GG/Mz3tTs2ZX85xMAYdKnWYypyl7XJKWFmEZtCnnu3nyXOiOqO3qLxakRp2YIW8eBD0zrY2vxiybRMXt+/XTSO8I8x3A28Uz6xF6EyoaWqssugM6HB7dDAJzJF6abRg8EzhUMfiRZci4ynalscoUTWSH96jZaGmXReozW79K08Z9tj671XzAP/CFGPP066pA5oWsDHbIPtPPGatMpYyqko1L5vyoVugGwOmw1tZ/EZx8uSFBIgXMCIQKOxb/xzUeY3HGdzEFKHY5ZLjx4eHyOPRGyXo9dRCyQo0io7f2NLtGaMLEDNGXZvUliBZs/jqCkDPuza4Sp14Ot/gw==</Skey>
<Data type="X" xmlns="">p/pMZqn9SsJVyKS+im8FqlsxmtCBkxVu9mMes71D8K+E9geETCE9kJz6LznbhjZN+XupfTQktbxMIfvCbHLLIahI1Y0hq8KfBkFZBdjFgPp8slCVe4YzhOuxUMR4OaUwIo19YqsC6bjgBoyybT1S+9ftkjuzwT73F5T51r/QMYN+RdjOg5TWvlH8o18uFyhxjXlTJcuEwAmy1z/vuvcXX6uH2DTPBJuAacsfLjgAy2XzxJC/ntAaTJz3/3KY271t1eGAyDv7+Wvc4UXgf04FmFSKcYRaYr69AK9Gdzypwx9ud21+k0CPz8Vw0i2Euju8LDOwm55gYPlT5cErcY4v11Dr28rbYqpNmr6Z59dX+ohWENdSfR3dmgnFIspiZcAcE0We/FL2AYY+VG1Ngb+0H03ctuaR/REZji0haNkh9D6HIYX74u+E1C0BeqloGTfw</Data>
<Hmac xmlns="">HAAuZUAblCsswOSbj+MBM1YsWtiMB3jWEA1ETTQfXrLCres92eX4JCBrSA+HStnH</Hmac>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
    <SignedInfo>
        <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
        <SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />
        <Reference URI="">
            <Transforms>
                <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
            </Transforms>
            <DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
            <DigestValue>ifafMel8cgQuxRYdOQytRfAKyPC2FXYvCdF6UbDCIrc=</DigestValue>
        </Reference>
    </SignedInfo>
    <SignatureValue>Yaje8U4JoY+CTfZJDq1YDdEG5x8iZxajN6OauK4tR0dbXitzakp+VRD0JSYL5niBinlYJx8YOR/YO+A/Kg7KxRZ11vpaVBLKcd6mojNDApittDFLhXDy660knMBQQWkN56m4o6++kZ7xrcgmSLo3MTttpNANjMBhprhIZZPnU3gXou26m3VY6qz3HgI2dncbgZLba3x348sfN28b4nE15g2k4/ZhVTstODzaoGGdCcrAq5zIMrJhf3fXhIgDpxbJJYtzSQWB5g6Kmlbl/D3Ay7YPu2CmdoP1ptYT/G/Xek+Iw4YM5hkIOjHkjw2goaPYlQOVpWSE4SMlr1IzyATuCg==</SignatureValue>
    <KeyInfo>
        <X509Data>
            <X509SubjectName>CN=Public AUA for Staging Services, OU=Staging Services, O=Public AUA, L=Bangalore, S=KA, C=IN</X509SubjectName>
            <X509Certificate>MIIDuDCCAqCgAwIBAgIGA7J+eqryMA0GCSqGSIb3DQEBBQUAMIGNMQswCQYDVQQGEwJJTjELMAkGA1UECBMCS0ExEjAQBgNVBAcTCUJhbmdhbG9yZTETMBEGA1UEChMKUHVibGljIEFVQTEZMBcGA1UECxMQU3RhZ2luZyBTZXJ2aWNlczEtMCsGA1UEAxMk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UCXYOQMvTii8l07qxkDiysVsLQ=</X509Certificate>
        </X509Data>
    </KeyInfo>
</Signature>

`

ghost commented 6 years ago

No, it seems absolutely fine to me. Are you sure the request timestamp is not too old? Could you try once using a synchronized session key? It could be problem with the server, or it could be version 1.6, which may become obsolete.

I didn't run the project for last few days so I could not check myself if it is something related from the library. I'm currently working with the Java API, after which I plan to upgrade to 2.0. In the meantime, if you solved the problem, or found any bug with the library, let me know.

I'm also waiting for the verdict before investing time on it again!

himadrinath commented 6 years ago

@souvikdc9 i tried your sample and also in my core2.0 web app both of them giving me the same result 504

SatyaPavanKumar commented 6 years ago

I downloaded project right now and set "Uidai.Aadhaar.Sample" as start up project and debugged. I am facing below issue. Do i need to modify anything after i downloading. I did not modified any personal information which Uidai test data.

Auth.AuthenticateAsync().GetAwaiter().GetResult(); in program.cs which internally navigates to Auth cs file.

// Perform Authentication var apiClient = new AuthClient { AgencyInfo = Options.AgencyInfo, Request = new AuthRequest(deviceContext) { Signer = Signer }, Response = new AuthResponse { Verifier = Verifier } }; await apiClient.GetResponseAsync(); -- Exception causing at this step.

Pls. help me to solve this. Or am i need to change anything after downloading. 503service

ghost commented 6 years ago

@SatyaPavanKumar the exception is occurring at the HTTP level, and not with API. Make sure that the Auth URL points to a working version.

ghost commented 6 years ago

@himadrinath & @SatyaPavanKumar Currently, UIDAI is phasing out version 1.6, so it is possible that you get Error 998, or HTTP 503. Moreover, many times the Auth or OTP server doesn't work. Sometimes the TEST UIDs doesn't work.

The .NET API worked really nicely at one point of time, but it is currently becoming difficult to use it, as it target older version. Therefore, may be it is time that we upgrade to 2.0. But that requires some delays, mostly because of law issue and free time.

himadrinath commented 6 years ago

@souvikdc9 can u gave us any timeline how long it will take u too convert into 2.0 and what law issue u talking about.?

ghost commented 6 years ago

@himadrinath Only after Supreme Court of India gives her final verdict on the usage of Aadhaar, I'll start re-developing the library full-fledged.