mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Merge branch 'main' into EzioTheDeadPoet-patch-3
This commit is contained in:
commit
c0782cee6a
@ -1,5 +1,9 @@
|
|||||||
### Changelog
|
### Changelog
|
||||||
|
|
||||||
|
#### Version - 3.6.0.0 - 5/25/2024
|
||||||
|
* Wabbajack now uses OAuth2 for Nexus Mods logins
|
||||||
|
* Support for DirectURL use with LL files
|
||||||
|
|
||||||
#### Version - 3.5.0.2 - 5/21/2024
|
#### Version - 3.5.0.2 - 5/21/2024
|
||||||
* *HOTFIX* - change how we log into Nexus Mods. We still need to rewrite this on
|
* *HOTFIX* - change how we log into Nexus Mods. We still need to rewrite this on
|
||||||
Oauth2, but this should fix the current issues we have, and get people back up and running
|
Oauth2, but this should fix the current issues we have, and get people back up and running
|
||||||
|
@ -193,11 +193,8 @@ public class NexusApi
|
|||||||
var userAgent =
|
var userAgent =
|
||||||
$"{_appInfo.ApplicationSlug}/{_appInfo.Version} ({_appInfo.OSVersion}; {_appInfo.Platform})";
|
$"{_appInfo.ApplicationSlug}/{_appInfo.Version} ({_appInfo.OSVersion}; {_appInfo.Platform})";
|
||||||
|
|
||||||
if (!AuthInfo.HaveToken())
|
await AddAuthHeaders(msg);
|
||||||
throw new Exception("Please log into the Nexus before attempting to use Wabbajack");
|
|
||||||
|
|
||||||
var token = (await AuthInfo.Get())!;
|
|
||||||
|
|
||||||
if (uri.StartsWith("http"))
|
if (uri.StartsWith("http"))
|
||||||
{
|
{
|
||||||
msg.RequestUri = new Uri($"{string.Format(uri, parameters)}");
|
msg.RequestUri = new Uri($"{string.Format(uri, parameters)}");
|
||||||
@ -211,7 +208,6 @@ public class NexusApi
|
|||||||
msg.Headers.Add("Application-Name", _appInfo.ApplicationSlug);
|
msg.Headers.Add("Application-Name", _appInfo.ApplicationSlug);
|
||||||
msg.Headers.Add("Application-Version", _appInfo.Version);
|
msg.Headers.Add("Application-Version", _appInfo.Version);
|
||||||
|
|
||||||
await AddAuthHeaders(msg);
|
|
||||||
|
|
||||||
msg.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
|
msg.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
|
||||||
return msg;
|
return msg;
|
||||||
|
Loading…
Reference in New Issue
Block a user