Comments (3)
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.
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.
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)
- Options for styling of NetSparkle.UI.WPF to follow Host Application HOT 27
- Window Owner for WPF Software Update Dialog HOT 4
- UI threading issues HOT 2
- Outdated information in README HOT 1
- Console.WriteLine logging (remnant I guess) HOT 1
- Signature checking always fails on first install attempt after download HOT 3
- Announcement: 2.x is now "done", 3.x work has commenced
- Support for Avalonia 11 HOT 1
- Hi, does this updater support AOT with avalonia 11? HOT 2
- Is there a way to automatically run the installer after update download? HOT 4
- Can not run the update file HOT 3
- How to set mandatory updates and miniversion HOT 2
- Question about 2.51 HOT 2
- download HOT 1
- SemVer compare versions HOT 5
- Problem inheriting from WebClientFileDownloader class and overriding CreateHttpClient method HOT 1
- Missing code paths in InstallUpdate method HOT 1
- Support Nullable reference types
- [MacOS] App crash when unable to write Configuration file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netsparkle.