Coder Social home page Coder Social logo

Comments (3)

Deadpikle avatar Deadpikle commented on June 15, 2024 1

No problem! Glad you found a solution. I will go ahead and close this since you have a solution but feel free to comment again if needed or open a new issue. And down the road if there are changes needed for your use case just say so and/or send in a PR!

from netsparkle.

Deadpikle avatar Deadpikle commented on June 15, 2024

Hey @wendallmartin,

Good question. That param is used by the WebRequestAppCastDataDownloader for downloading the app cast, and you can change it via mySparkleUpdaterVar.AppCastDataDownloader.ExtraJsonData, assuming you have not changed the AppCastDataDownloader to your own custom object (which may be what you want to do anyway by implementing the IAppCastDataDownloader and/or the IUpdateDownloader interfaces to run whatever you want to do).

Other than that you could always attach the license key to the app cast URL or something (a GET param?) and have your server return data accordingly. Or something; that doesn't seem like the best idea but it would technically work. Anyway, you can either use that param or otherwise implement interfaces OR override CreateHttpClient accordingly to set up things how you like.

Does that help?

from netsparkle.

wendallmartin avatar wendallmartin commented on June 15, 2024

Oh, right. I was expecting to see ExtraJsonData set somewhere, but I see now that the AppCastDataDownloader property itself is exposed, thanks!

I initially went the parameter route, but I wanted to hide the license key from the URL itself.

Also I wanted to send the license key to WebFileDownloader to verify on that side. The last thing I want is some open endpoints where the installer can be downloaded easily if someone does discover it. Thinking about it tho, I can handle security on our update server, so that a custom end point is returned for each appcast request that invalidates after a period of time. This could be a parameter or custom endpoint.

What I ended up doing is copying the NetSparkle project into my project, and adding an authorization header to the HttpClient. That works well for my case. I will have to think about the above solution, maybe I will back up and use your nuget package then.

Thanks for your time! @Deadpikle

from netsparkle.

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.