Giter Site home page Giter Site logo

[New App]: BankID about evergreen HOT 6 OPEN

jms-du-se avatar jms-du-se commented on May 27, 2024
[New App]: BankID

from evergreen.

Comments (6)

aaronparker avatar aaronparker commented on May 27, 2024

I'm getting hit with a Captcha response when querying the XML. Highly likely to be because I'm outside Sweden, so creating a function for this could be challenging

from evergreen.

jms-du-se avatar jms-du-se commented on May 27, 2024

Hi Aaron, wouldn't that be strange? Swedish citizens should be able to run the version check even when they are abroad.
Did you set the User-Agent to: BankIDSecurityProgram

from evergreen.

aaronparker avatar aaronparker commented on May 27, 2024

Got this working with:

$params = @{
    Uri              = "https://vks.bankid.com"
    UserAgent        = "BankIDSecurityProgram"
    ContentType      = "application/xml; charset=utf-8"
    Body             = '<?xml version="1.0" encoding="utf-8"?><autoUpdateRequest><requestVersion>1.1</requestVersion><requestSequenceNr>1</requestSequenceNr><uhi>g+o9gYX4DcDZkQexT49puYWbWpO4</uhi><version>7.14.102.4</version></autoUpdateRequest>'
    #Headers          = @{ "Accept-Language" = "sv-se" }
    #TransferEncoding = "gzip"
    Method           = "POST"
    UseBasicParsing  = $true
    Verbose          = $true
}
iwr @params

which returns:

<?xml version="1.0" encoding="UTF-8"?>
<autoUpdateResponse><responseVersion>1.2</responseVersion><responseSequence>1</responseSequence><nonce>ZGZmMDU2NzMtNzFlYS00YzNkLTg=</nonce><action></action></autoUpdateResponse>

from evergreen.

aaronparker avatar aaronparker commented on May 27, 2024

However, there's not much I can do with the response to turn it into an evergreen download URL. If we were to post the request with version 7.14.102.4 and get back 7.15.102.0, for example, that could be turned into a URL.

from evergreen.

jms-du-se avatar jms-du-se commented on May 27, 2024

from evergreen.

aaronparker avatar aaronparker commented on May 27, 2024

The XML in the response data doesn't provide any version data that relates to the download URLs, e.g. https://cdn.bankid.com/bisp/win/BankID_installation_7_14_2.exe, https://cdn.bankid.com/bisp/win/BankID_installation_7_14_2.zip

from evergreen.

Related Issues (20)

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.