summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Web/Framework/ConfigModels
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-09-22 23:43:58 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-09-22 23:43:58 -0400
commiteaabd91f31db35e050b7215f5f36568bf6982a83 (patch)
tree46b3a45d47a88acca28795de8060e50f6bbbd0f7 /src/StardewModdingAPI.Web/Framework/ConfigModels
parent0d6f6a9acef175fd9ea0df6790111d8d58d7f368 (diff)
downloadSMAPI-eaabd91f31db35e050b7215f5f36568bf6982a83.tar.gz
SMAPI-eaabd91f31db35e050b7215f5f36568bf6982a83.tar.bz2
SMAPI-eaabd91f31db35e050b7215f5f36568bf6982a83.zip
authenticate GitHub queries if auth details are configured (#336)
Diffstat (limited to 'src/StardewModdingAPI.Web/Framework/ConfigModels')
-rw-r--r--src/StardewModdingAPI.Web/Framework/ConfigModels/ModUpdateCheckConfig.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/StardewModdingAPI.Web/Framework/ConfigModels/ModUpdateCheckConfig.cs b/src/StardewModdingAPI.Web/Framework/ConfigModels/ModUpdateCheckConfig.cs
index 4dbad506..5d55ba18 100644
--- a/src/StardewModdingAPI.Web/Framework/ConfigModels/ModUpdateCheckConfig.cs
+++ b/src/StardewModdingAPI.Web/Framework/ConfigModels/ModUpdateCheckConfig.cs
@@ -30,6 +30,12 @@ namespace StardewModdingAPI.Web.Framework.ConfigModels
/// <summary>The Accept header value expected by the GitHub API.</summary>
public string GitHubAcceptHeader { get; set; }
+ /// <summary>The username with which to authenticate to the GitHub API (if any).</summary>
+ public string GitHubUsername { get; set; }
+
+ /// <summary>The password with which to authenticate to the GitHub API (if any).</summary>
+ public string GitHubPassword { get; set; }
+
/****
** Nexus Mods
****/