mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-24 21:46:52 +01:00
313 lines
76 KiB
HTML
313 lines
76 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>tgstation-server: src/Tgstation.Server.Host/Controllers/ApiRootController.cs Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">tgstation-server<span id="projectnumber"> 6.19.3</span>
|
|
</div>
|
|
<div id="projectbrief">The /tg/station 13 server suite</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.8 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function() { init_codefold(0); });
|
|
/* @license-end */
|
|
</script>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_34761767c1c3cd212f9d2f80ea0828a8.html">Tgstation.Server.Host</a></li><li class="navelem"><a class="el" href="dir_38cec1532eaed7aa1de0b599a76e3e80.html">Controllers</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">ApiRootController.cs</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="_api_root_controller_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="keyword">using </span>System;</div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="keyword">using </span>System.Linq;</div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="keyword">using </span>System.Threading;</div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="keyword">using </span>System.Threading.Tasks;</div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span> </div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="keyword">using </span>Microsoft.AspNetCore.Mvc;</div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="keyword">using </span>Microsoft.Extensions.Logging;</div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="keyword">using </span>Microsoft.Extensions.Options;</div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="keyword">using </span>Microsoft.Extensions.Primitives;</div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="keyword">using </span>Microsoft.Net.Http.Headers;</div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> </div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="keyword">using </span>Octokit;</div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_api.html">Tgstation.Server.Api</a>;</div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_api_1_1_models_1_1_response.html">Tgstation.Server.Api.Models.Response</a>;</div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_authority.html">Tgstation.Server.Host.Authority</a>;</div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_components_1_1_interop.html">Tgstation.Server.Host.Components.Interop</a>;</div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_configuration.html">Tgstation.Server.Host.Configuration</a>;</div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_core.html">Tgstation.Server.Host.Core</a>;</div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_database.html">Tgstation.Server.Host.Database</a>;</div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_mutations_1_1_payloads.html">Tgstation.Server.Host.GraphQL.Mutations.Payloads</a>;</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_models.html">Tgstation.Server.Host.Models</a>;</div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_security.html">Tgstation.Server.Host.Security</a>;</div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_security_1_1_o_auth.html">Tgstation.Server.Host.Security.OAuth</a>;</div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_swarm.html">Tgstation.Server.Host.Swarm</a>;</div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_system.html">Tgstation.Server.Host.System</a>;</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_utils.html">Tgstation.Server.Host.Utils</a>;</div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_controllers.html">Tgstation.Server.Host.Controllers</a></div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span>{</div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> [Route(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html">Routes</a>.<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a8c6219903a85b89432912919b1762e49">ApiRoot</a>)]</div>
|
|
<div class="foldopen" id="foldopen00035" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html"> 35</a></span> <span class="keyword">public</span> <span class="keyword">sealed</span> <span class="keyword">class </span><a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html">ApiRootController</a> : <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_controller.html">ApiController</a></div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> {</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#ad74a33fef78ee13635de33f9a01c4be5"> 40</a></span> readonly <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_assembly_information_provider.html">IAssemblyInformationProvider</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#ad74a33fef78ee13635de33f9a01c4be5">assemblyInformationProvider</a>;</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#adbcc2da9d0aa14d536189146aad60ac7"> 45</a></span> readonly <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_security_1_1_o_auth_1_1_i_o_auth_providers.html">IOAuthProviders</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#adbcc2da9d0aa14d536189146aad60ac7">oAuthProviders</a>;</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> </div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a8fdaaeecf7e7d170beac049a8d79b786"> 50</a></span> readonly <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_platform_identifier.html">IPlatformIdentifier</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a8fdaaeecf7e7d170beac049a8d79b786">platformIdentifier</a>;</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#af066e54dc54f71de8fa36c8119762171"> 55</a></span> readonly <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_swarm_1_1_i_swarm_service.html">ISwarmService</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#af066e54dc54f71de8fa36c8119762171">swarmService</a>;</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> </div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a323c50c9d74e186f03782d3b7f9bb716"> 60</a></span> readonly <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_core_1_1_i_server_control.html">IServerControl</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a323c50c9d74e186f03782d3b7f9bb716">serverControl</a>;</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a76d72246d683c7dad0c0b643f47b5ea4"> 65</a></span> readonly <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_authority_1_1_i_rest_authority_invoker.html">IRestAuthorityInvoker<ILoginAuthority></a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a76d72246d683c7dad0c0b643f47b5ea4">loginAuthority</a>;</div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#adec7285b029919447cf221cac43c4d5b"> 70</a></span> readonly IOptionsSnapshot<GeneralConfiguration> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#adec7285b029919447cf221cac43c4d5b">generalConfigurationOptions</a>;</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a6ad663eb7c4f2f83b8d9ad3f3c52d3f6"> 75</a></span> readonly IOptionsSnapshot<SecurityConfiguration> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a6ad663eb7c4f2f83b8d9ad3f3c52d3f6">securityConfigurationOptions</a>;</div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> </div>
|
|
<div class="foldopen" id="foldopen00092" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a739c2dd6cf6cee5532496c3030586e27"> 92</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a739c2dd6cf6cee5532496c3030586e27">ApiRootController</a>(</div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_database_1_1_i_database_context.html">IDatabaseContext</a> databaseContext,</div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_security_1_1_i_authentication_context.html">IAuthenticationContext</a> authenticationContext,</div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_assembly_information_provider.html">IAssemblyInformationProvider</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#ad74a33fef78ee13635de33f9a01c4be5">assemblyInformationProvider</a>,</div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_security_1_1_o_auth_1_1_i_o_auth_providers.html">IOAuthProviders</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#adbcc2da9d0aa14d536189146aad60ac7">oAuthProviders</a>,</div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_platform_identifier.html">IPlatformIdentifier</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a8fdaaeecf7e7d170beac049a8d79b786">platformIdentifier</a>,</div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_swarm_1_1_i_swarm_service.html">ISwarmService</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#af066e54dc54f71de8fa36c8119762171">swarmService</a>,</div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_core_1_1_i_server_control.html">IServerControl</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a323c50c9d74e186f03782d3b7f9bb716">serverControl</a>,</div>
|
|
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> IOptionsSnapshot<GeneralConfiguration> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#adec7285b029919447cf221cac43c4d5b">generalConfigurationOptions</a>,</div>
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> IOptionsSnapshot<SecurityConfiguration> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a6ad663eb7c4f2f83b8d9ad3f3c52d3f6">securityConfigurationOptions</a>,</div>
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> ILogger<ApiRootController> logger,</div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_i_api_headers_provider.html">IApiHeadersProvider</a> apiHeadersProvider,</div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_authority_1_1_i_rest_authority_invoker.html">IRestAuthorityInvoker<ILoginAuthority></a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a76d72246d683c7dad0c0b643f47b5ea4">loginAuthority</a>)</div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> : base(</div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> databaseContext,</div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> authenticationContext,</div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> apiHeadersProvider,</div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> logger,</div>
|
|
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> false)</div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> {</div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> this.assemblyInformationProvider = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#ad74a33fef78ee13635de33f9a01c4be5">assemblyInformationProvider</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> ArgumentNullException(nameof(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#ad74a33fef78ee13635de33f9a01c4be5">assemblyInformationProvider</a>));</div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> this.platformIdentifier = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a8fdaaeecf7e7d170beac049a8d79b786">platformIdentifier</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> ArgumentNullException(nameof(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a8fdaaeecf7e7d170beac049a8d79b786">platformIdentifier</a>));</div>
|
|
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> this.oAuthProviders = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#adbcc2da9d0aa14d536189146aad60ac7">oAuthProviders</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> ArgumentNullException(nameof(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#adbcc2da9d0aa14d536189146aad60ac7">oAuthProviders</a>));</div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> this.swarmService = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#af066e54dc54f71de8fa36c8119762171">swarmService</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> ArgumentNullException(nameof(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#af066e54dc54f71de8fa36c8119762171">swarmService</a>));</div>
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> this.serverControl = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a323c50c9d74e186f03782d3b7f9bb716">serverControl</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> ArgumentNullException(nameof(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a323c50c9d74e186f03782d3b7f9bb716">serverControl</a>));</div>
|
|
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> this.generalConfigurationOptions = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#adec7285b029919447cf221cac43c4d5b">generalConfigurationOptions</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> ArgumentNullException(nameof(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#adec7285b029919447cf221cac43c4d5b">generalConfigurationOptions</a>));</div>
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> this.securityConfigurationOptions = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a6ad663eb7c4f2f83b8d9ad3f3c52d3f6">securityConfigurationOptions</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> ArgumentNullException(nameof(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a6ad663eb7c4f2f83b8d9ad3f3c52d3f6">securityConfigurationOptions</a>));</div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> this.loginAuthority = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a76d72246d683c7dad0c0b643f47b5ea4">loginAuthority</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> ArgumentNullException(nameof(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a76d72246d683c7dad0c0b643f47b5ea4">loginAuthority</a>));</div>
|
|
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> </div>
|
|
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> [HttpGet]</div>
|
|
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> [ProducesResponseType(typeof(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_server_information_response.html">ServerInformationResponse</a>), 200)]</div>
|
|
<div class="foldopen" id="foldopen00131" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#ac68114c705ed3325880697d796fe8f0b"> 131</a></span> <span class="keyword">public</span> IActionResult <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#ac68114c705ed3325880697d796fe8f0b">ServerInfo</a>()</div>
|
|
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> {</div>
|
|
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> <span class="comment">// if they tried to authenticate in any form and failed, let them know immediately</span></div>
|
|
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <span class="keywordtype">bool</span> failIfUnauthed;</div>
|
|
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <span class="keywordflow">if</span> (<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_api_headers.html">ApiHeaders</a> == <span class="keyword">null</span>)</div>
|
|
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> {</div>
|
|
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <span class="keywordflow">try</span></div>
|
|
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> {</div>
|
|
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <span class="comment">// we only allow authorization header issues</span></div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_api_headers_provider.html">ApiHeadersProvider</a>.<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_api_headers_provider.html#a3def189103a04956cec01d2453f7318d">CreateAuthlessHeaders</a>();</div>
|
|
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> }</div>
|
|
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="keywordflow">catch</span> (<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_headers_exception.html">HeadersException</a> ex)</div>
|
|
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> {</div>
|
|
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="keywordflow">return</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_controller.html#a5333dd9534ea615440e2360016e75be4">HeadersIssue</a>(ex);</div>
|
|
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> }</div>
|
|
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> </div>
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> failIfUnauthed = Request.Headers.Authorization.Count > 0;</div>
|
|
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> }</div>
|
|
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> <span class="keywordflow">else</span></div>
|
|
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> failIfUnauthed = ApiHeaders.Token != <span class="keyword">null</span>;</div>
|
|
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> </div>
|
|
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <span class="keywordflow">if</span> (failIfUnauthed && !<a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_security_1_1_authentication_context.html">AuthenticationContext</a>.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_host_1_1_security_1_1_authentication_context.html#ab8ce3a086968c8f2d2cd10bd0a9136ca">Valid</a>)</div>
|
|
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespace_tgstation_1_1_server_1_1_host_1_1_swarm.html#acfc07eda2ac8eff75a6eef3f90bdf3e0ae06d1ba70f1331e9f9a113cc2f887d3f">Unauthorized</a>();</div>
|
|
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> </div>
|
|
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <span class="keywordflow">return</span> Json(<span class="keyword">new</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_server_information_response.html">ServerInformationResponse</a></div>
|
|
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> {</div>
|
|
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> Version = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#ad74a33fef78ee13635de33f9a01c4be5">assemblyInformationProvider</a>.<a class="code hl_property" href="interface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_assembly_information_provider.html#a600df9ffd79d4f94f59dfefccbcec099">Version</a>,</div>
|
|
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> ApiVersion = <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_api_headers.html">ApiHeaders</a>.<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_api_1_1_api_headers.html#a6741a096c8700041ac2995b55078302b">Version</a>,</div>
|
|
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> DMApiVersion = <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_interop_1_1_d_m_api_constants.html">DMApiConstants</a>.<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_interop_1_1_d_m_api_constants.html#ac2e027490bca3307936efe1092da2cc9">InteropVersion</a>,</div>
|
|
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> MinimumPasswordLength = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#adec7285b029919447cf221cac43c4d5b">generalConfigurationOptions</a>.Value.MinimumPasswordLength,</div>
|
|
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> InstanceLimit = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#adec7285b029919447cf221cac43c4d5b">generalConfigurationOptions</a>.Value.InstanceLimit,</div>
|
|
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> UserLimit = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#adec7285b029919447cf221cac43c4d5b">generalConfigurationOptions</a>.Value.UserLimit,</div>
|
|
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> UserGroupLimit = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#adec7285b029919447cf221cac43c4d5b">generalConfigurationOptions</a>.Value.UserGroupLimit,</div>
|
|
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> ValidInstancePaths = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#adec7285b029919447cf221cac43c4d5b">generalConfigurationOptions</a>.Value.ValidInstancePaths,</div>
|
|
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> WindowsHost = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a8fdaaeecf7e7d170beac049a8d79b786">platformIdentifier</a>.<a class="code hl_property" href="interface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_platform_identifier.html#aa9bf3bd1082b7178f58cb1f36839550e">IsWindows</a>,</div>
|
|
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> SwarmServers = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#af066e54dc54f71de8fa36c8119762171">swarmService</a></div>
|
|
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> .<a class="code hl_function" href="interface_tgstation_1_1_server_1_1_host_1_1_swarm_1_1_i_swarm_service.html#abda536785999219476ca30f6a0d16c56">GetSwarmServers</a>()</div>
|
|
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> ?.Select(swarmServerInfo => <span class="keyword">new</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_swarm_server_response.html">SwarmServerResponse</a>(swarmServerInfo))</div>
|
|
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> .ToList(),</div>
|
|
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> OAuthProviderInfos = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#adbcc2da9d0aa14d536189146aad60ac7">oAuthProviders</a>.<a class="code hl_function" href="interface_tgstation_1_1_server_1_1_host_1_1_security_1_1_o_auth_1_1_i_o_auth_providers.html#a733dbba10de53f9c5dfa8daf99b7cdab">ProviderInfos</a>(),</div>
|
|
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> OidcProviderInfos = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a6ad663eb7c4f2f83b8d9ad3f3c52d3f6">securityConfigurationOptions</a>.Value.OidcProviderInfos().ToList(),</div>
|
|
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <a class="code hl_enumvalue" href="namespace_tgstation_1_1_server_1_1_host_1_1_core.html#ae686e550e6b4c0a19a500e3dd9e4195cabe7bd44ba521a3628a4c1534d12d40a3">UpdateInProgress</a> = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a323c50c9d74e186f03782d3b7f9bb716">serverControl</a>.<a class="code hl_property" href="interface_tgstation_1_1_server_1_1_host_1_1_core_1_1_i_server_control.html#aa83c9bd0b17b1a40a4db3e7f4553374a">UpdateInProgress</a>,</div>
|
|
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> OidcStrictMode = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a6ad663eb7c4f2f83b8d9ad3f3c52d3f6">securityConfigurationOptions</a>.Value.OidcStrictMode,</div>
|
|
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> });</div>
|
|
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> </div>
|
|
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> [HttpPost]</div>
|
|
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> [ProducesResponseType(typeof(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_token_response.html">TokenResponse</a>), 200)]</div>
|
|
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> [ProducesResponseType(typeof(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_error_message_response.html">ErrorMessageResponse</a>), 429)]</div>
|
|
<div class="foldopen" id="foldopen00189" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a312331c3db52428a3d06f9967ec56cd8"> 189</a></span> <span class="keyword">public</span> ValueTask<IActionResult> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a312331c3db52428a3d06f9967ec56cd8">CreateToken</a>(CancellationToken cancellationToken)</div>
|
|
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> {</div>
|
|
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> <span class="keywordflow">if</span> (<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_api_headers.html">ApiHeaders</a> == <span class="keyword">null</span>)</div>
|
|
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> {</div>
|
|
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> Response.Headers.Add(HeaderNames.WWWAuthenticate, <span class="keyword">new</span> StringValues($<span class="stringliteral">"basic realm=\"Create TGS {ApiHeaders.BearerAuthenticationScheme} token\""</span>));</div>
|
|
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> <span class="keywordflow">return</span> ValueTask.FromResult(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_controller.html#a5333dd9534ea615440e2360016e75be4">HeadersIssue</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_api_headers_provider.html">ApiHeadersProvider</a>.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_api_headers_provider.html#ad55f6c0d30e40d16b44c5b713e921a76">HeadersException</a>!));</div>
|
|
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> }</div>
|
|
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> </div>
|
|
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a76d72246d683c7dad0c0b643f47b5ea4">loginAuthority</a>.InvokeTransformable<<a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_mutations_1_1_payloads_1_1_login_result.html">LoginResult</a>, <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_token_response.html">TokenResponse</a>>(<span class="keyword">this</span>, authority => authority.AttemptLogin(cancellationToken));</div>
|
|
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> </div>
|
|
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> [HttpPost(<span class="stringliteral">"oauth_gateway"</span>)]</div>
|
|
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> [ProducesResponseType(typeof(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_o_auth_gateway_response.html">OAuthGatewayResponse</a>), 200)]</div>
|
|
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> [ProducesResponseType(typeof(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_error_message_response.html">ErrorMessageResponse</a>), 429)]</div>
|
|
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a2087557fa7c483de1b2a87b0560aff31"> 211</a></span> <span class="keyword">public</span> ValueTask<IActionResult> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a2087557fa7c483de1b2a87b0560aff31">CreateOAuthGatewayToken</a>(CancellationToken cancellationToken)</div>
|
|
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a660d03d8a0bc9786285e991d98c8ac65"> 212</a></span> => <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a76d72246d683c7dad0c0b643f47b5ea4">loginAuthority</a>.InvokeTransformable<<a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_mutations_1_1_payloads_1_1_o_auth_gateway_login_result.html">OAuthGatewayLoginResult</a>, <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_o_auth_gateway_response.html">OAuthGatewayResponse</a>>(<span class="keyword">this</span>, authority => authority.AttemptOAuthGatewayLogin(cancellationToken));</div>
|
|
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span>}</div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_api_headers_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_api_headers.html">Tgstation.Server.Api.ApiHeaders</a></div><div class="ttdoc">Represents the header that must be present for every server request.</div><div class="ttdef"><b>Definition</b> <a href="_api_headers_8cs_source.html#l00024">ApiHeaders.cs:25</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_api_headers_html_a6741a096c8700041ac2995b55078302b"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_api_headers.html#a6741a096c8700041ac2995b55078302b">Tgstation.Server.Api.ApiHeaders.Version</a></div><div class="ttdeci">static readonly Version Version</div><div class="ttdoc">Get the version of the Api the caller is using.</div><div class="ttdef"><b>Definition</b> <a href="_api_headers_8cs_source.html#l00069">ApiHeaders.cs:69</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_headers_exception_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_headers_exception.html">Tgstation.Server.Api.HeadersException</a></div><div class="ttdoc">Thrown when trying to generate ApiHeaders from Microsoft.AspNetCore.Http.Headers.RequestHeaders fails...</div><div class="ttdef"><b>Definition</b> <a href="_headers_exception_8cs_source.html#l00008">HeadersException.cs:9</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_error_message_response_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_error_message_response.html">Tgstation.Server.Api.Models.Response.ErrorMessageResponse</a></div><div class="ttdoc">Represents an error message returned by the server.</div><div class="ttdef"><b>Definition</b> <a href="_error_message_response_8cs_source.html#l00011">ErrorMessageResponse.cs:12</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_o_auth_gateway_response_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_o_auth_gateway_response.html">Tgstation.Server.Api.Models.Response.OAuthGatewayResponse</a></div><div class="ttdoc">Success result for an OAuth gateway login attempt.</div><div class="ttdef"><b>Definition</b> <a href="_o_auth_gateway_response_8cs_source.html#l00006">OAuthGatewayResponse.cs:7</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_server_information_response_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_server_information_response.html">Tgstation.Server.Api.Models.Response.ServerInformationResponse</a></div><div class="ttdoc">Represents basic server information.</div><div class="ttdef"><b>Definition</b> <a href="_server_information_response_8cs_source.html#l00009">ServerInformationResponse.cs:10</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_swarm_server_response_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_swarm_server_response.html">Tgstation.Server.Api.Models.Response.SwarmServerResponse</a></div><div class="ttdef"><b>Definition</b> <a href="_swarm_server_response_8cs_source.html#l00008">SwarmServerResponse.cs:9</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_token_response_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_token_response.html">Tgstation.Server.Api.Models.Response.TokenResponse</a></div><div class="ttdoc">Represents a JWT returned by the API.</div><div class="ttdef"><b>Definition</b> <a href="_token_response_8cs_source.html#l00008">TokenResponse.cs:9</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_routes_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_routes.html">Tgstation.Server.Api.Routes</a></div><div class="ttdoc">Routes to a server actions.</div><div class="ttdef"><b>Definition</b> <a href="_routes_8cs_source.html#l00008">Routes.cs:9</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_routes_html_a8c6219903a85b89432912919b1762e49"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a8c6219903a85b89432912919b1762e49">Tgstation.Server.Api.Routes.ApiRoot</a></div><div class="ttdeci">const string ApiRoot</div><div class="ttdoc">The root of API methods.</div><div class="ttdef"><b>Definition</b> <a href="_routes_8cs_source.html#l00013">Routes.cs:13</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_interop_1_1_d_m_api_constants_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_interop_1_1_d_m_api_constants.html">Tgstation.Server.Host.Components.Interop.DMApiConstants</a></div><div class="ttdoc">Constants used for communication with the DMAPI.</div><div class="ttdef"><b>Definition</b> <a href="_d_m_api_constants_8cs_source.html#l00015">DMApiConstants.cs:16</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_interop_1_1_d_m_api_constants_html_ac2e027490bca3307936efe1092da2cc9"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_interop_1_1_d_m_api_constants.html#ac2e027490bca3307936efe1092da2cc9">Tgstation.Server.Host.Components.Interop.DMApiConstants.InteropVersion</a></div><div class="ttdeci">static readonly Version InteropVersion</div><div class="ttdoc">The DMAPI InteropVersion being used.</div><div class="ttdef"><b>Definition</b> <a href="_d_m_api_constants_8cs_source.html#l00056">DMApiConstants.cs:56</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_controller_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_controller.html">Tgstation.Server.Host.Controllers.ApiController</a></div><div class="ttdoc">Base Controller for API functions.</div><div class="ttdef"><b>Definition</b> <a href="_api_controller_8cs_source.html#l00036">ApiController.cs:37</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_controller_html_a5333dd9534ea615440e2360016e75be4"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_controller.html#a5333dd9534ea615440e2360016e75be4">Tgstation.Server.Host.Controllers.ApiController.HeadersIssue</a></div><div class="ttdeci">IActionResult HeadersIssue(HeadersException headersException)</div><div class="ttdoc">Response for missing/Invalid headers.</div><div class="ttdef"><b>Definition</b> <a href="_api_controller_8cs_source.html#l00225">ApiController.cs:225</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html">Tgstation.Server.Host.Controllers.ApiRootController</a></div><div class="ttdoc">Root ApiController for the Application.</div><div class="ttdef"><b>Definition</b> <a href="_api_root_controller_8cs_source.html#l00035">ApiRootController.cs:36</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller_html_a2087557fa7c483de1b2a87b0560aff31"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a2087557fa7c483de1b2a87b0560aff31">Tgstation.Server.Host.Controllers.ApiRootController.CreateOAuthGatewayToken</a></div><div class="ttdeci">ValueTask< IActionResult > CreateOAuthGatewayToken(CancellationToken cancellationToken)</div><div class="ttdoc">Attempt to authenticate a User using ApiController.ApiHeaders.</div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller_html_a312331c3db52428a3d06f9967ec56cd8"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a312331c3db52428a3d06f9967ec56cd8">Tgstation.Server.Host.Controllers.ApiRootController.CreateToken</a></div><div class="ttdeci">ValueTask< IActionResult > CreateToken(CancellationToken cancellationToken)</div><div class="ttdoc">Attempt to authenticate a User using ApiController.ApiHeaders.</div><div class="ttdef"><b>Definition</b> <a href="_api_root_controller_8cs_source.html#l00189">ApiRootController.cs:189</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller_html_a323c50c9d74e186f03782d3b7f9bb716"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a323c50c9d74e186f03782d3b7f9bb716">Tgstation.Server.Host.Controllers.ApiRootController.serverControl</a></div><div class="ttdeci">readonly IServerControl serverControl</div><div class="ttdoc">The IServerControl for the ApiRootController.</div><div class="ttdef"><b>Definition</b> <a href="_api_root_controller_8cs_source.html#l00060">ApiRootController.cs:60</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller_html_a6ad663eb7c4f2f83b8d9ad3f3c52d3f6"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a6ad663eb7c4f2f83b8d9ad3f3c52d3f6">Tgstation.Server.Host.Controllers.ApiRootController.securityConfigurationOptions</a></div><div class="ttdeci">readonly IOptionsSnapshot< SecurityConfiguration > securityConfigurationOptions</div><div class="ttdoc">The IOptionsSnapshot<TOptions> of SecurityConfiguration for the ApiRootController.</div><div class="ttdef"><b>Definition</b> <a href="_api_root_controller_8cs_source.html#l00075">ApiRootController.cs:75</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller_html_a739c2dd6cf6cee5532496c3030586e27"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a739c2dd6cf6cee5532496c3030586e27">Tgstation.Server.Host.Controllers.ApiRootController.ApiRootController</a></div><div class="ttdeci">ApiRootController(IDatabaseContext databaseContext, IAuthenticationContext authenticationContext, IAssemblyInformationProvider assemblyInformationProvider, IOAuthProviders oAuthProviders, IPlatformIdentifier platformIdentifier, ISwarmService swarmService, IServerControl serverControl, IOptionsSnapshot< GeneralConfiguration > generalConfigurationOptions, IOptionsSnapshot< SecurityConfiguration > securityConfigurationOptions, ILogger< ApiRootController > logger, IApiHeadersProvider apiHeadersProvider, IRestAuthorityInvoker< ILoginAuthority > loginAuthority)</div><div class="ttdoc">Initializes a new instance of the ApiRootController class.</div><div class="ttdef"><b>Definition</b> <a href="_api_root_controller_8cs_source.html#l00092">ApiRootController.cs:92</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller_html_a76d72246d683c7dad0c0b643f47b5ea4"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a76d72246d683c7dad0c0b643f47b5ea4">Tgstation.Server.Host.Controllers.ApiRootController.loginAuthority</a></div><div class="ttdeci">readonly IRestAuthorityInvoker< ILoginAuthority > loginAuthority</div><div class="ttdoc">The IRestAuthorityInvoker<TAuthority> for the ILoginAuthority.</div><div class="ttdef"><b>Definition</b> <a href="_api_root_controller_8cs_source.html#l00065">ApiRootController.cs:65</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller_html_a8fdaaeecf7e7d170beac049a8d79b786"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#a8fdaaeecf7e7d170beac049a8d79b786">Tgstation.Server.Host.Controllers.ApiRootController.platformIdentifier</a></div><div class="ttdeci">readonly IPlatformIdentifier platformIdentifier</div><div class="ttdoc">The IPlatformIdentifier for the ApiRootController.</div><div class="ttdef"><b>Definition</b> <a href="_api_root_controller_8cs_source.html#l00050">ApiRootController.cs:50</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller_html_ac68114c705ed3325880697d796fe8f0b"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#ac68114c705ed3325880697d796fe8f0b">Tgstation.Server.Host.Controllers.ApiRootController.ServerInfo</a></div><div class="ttdeci">IActionResult ServerInfo()</div><div class="ttdoc">Main page of the Application.</div><div class="ttdef"><b>Definition</b> <a href="_api_root_controller_8cs_source.html#l00131">ApiRootController.cs:131</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller_html_ad74a33fef78ee13635de33f9a01c4be5"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#ad74a33fef78ee13635de33f9a01c4be5">Tgstation.Server.Host.Controllers.ApiRootController.assemblyInformationProvider</a></div><div class="ttdeci">readonly IAssemblyInformationProvider assemblyInformationProvider</div><div class="ttdoc">The IAssemblyInformationProvider for the ApiRootController.</div><div class="ttdef"><b>Definition</b> <a href="_api_root_controller_8cs_source.html#l00040">ApiRootController.cs:40</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller_html_adbcc2da9d0aa14d536189146aad60ac7"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#adbcc2da9d0aa14d536189146aad60ac7">Tgstation.Server.Host.Controllers.ApiRootController.oAuthProviders</a></div><div class="ttdeci">readonly IOAuthProviders oAuthProviders</div><div class="ttdoc">The IOAuthProviders for the ApiRootController.</div><div class="ttdef"><b>Definition</b> <a href="_api_root_controller_8cs_source.html#l00045">ApiRootController.cs:45</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller_html_adec7285b029919447cf221cac43c4d5b"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#adec7285b029919447cf221cac43c4d5b">Tgstation.Server.Host.Controllers.ApiRootController.generalConfigurationOptions</a></div><div class="ttdeci">readonly IOptionsSnapshot< GeneralConfiguration > generalConfigurationOptions</div><div class="ttdoc">The IOptionsSnapshot<TOptions> of GeneralConfiguration for the ApiRootController.</div><div class="ttdef"><b>Definition</b> <a href="_api_root_controller_8cs_source.html#l00070">ApiRootController.cs:70</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller_html_af066e54dc54f71de8fa36c8119762171"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_root_controller.html#af066e54dc54f71de8fa36c8119762171">Tgstation.Server.Host.Controllers.ApiRootController.swarmService</a></div><div class="ttdeci">readonly ISwarmService swarmService</div><div class="ttdoc">The ISwarmService for the ApiRootController.</div><div class="ttdef"><b>Definition</b> <a href="_api_root_controller_8cs_source.html#l00055">ApiRootController.cs:55</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_mutations_1_1_payloads_1_1_login_result_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_mutations_1_1_payloads_1_1_login_result.html">Tgstation.Server.Host.GraphQL.Mutations.Payloads.LoginResult</a></div><div class="ttdoc">Success response for a login attempt.</div><div class="ttdef"><b>Definition</b> <a href="_login_result_8cs_source.html#l00011">LoginResult.cs:12</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_mutations_1_1_payloads_1_1_o_auth_gateway_login_result_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_mutations_1_1_payloads_1_1_o_auth_gateway_login_result.html">Tgstation.Server.Host.GraphQL.Mutations.Payloads.OAuthGatewayLoginResult</a></div><div class="ttdoc">Success result for an OAuth gateway login attempt.</div><div class="ttdef"><b>Definition</b> <a href="_o_auth_gateway_login_result_8cs_source.html#l00011">OAuthGatewayLoginResult.cs:12</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_security_1_1_authentication_context_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_security_1_1_authentication_context.html">Tgstation.Server.Host.Security.AuthenticationContext</a></div><div class="ttdef"><b>Definition</b> <a href="_authentication_context_8cs_source.html#l00010">AuthenticationContext.cs:11</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_security_1_1_authentication_context_html_ab8ce3a086968c8f2d2cd10bd0a9136ca"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_security_1_1_authentication_context.html#ab8ce3a086968c8f2d2cd10bd0a9136ca">Tgstation.Server.Host.Security.AuthenticationContext.Valid</a></div><div class="ttdeci">bool Valid</div><div class="ttdoc">If the IAuthenticationContext is for a valid login.</div><div class="ttdef"><b>Definition</b> <a href="_authentication_context_8cs_source.html#l00013">AuthenticationContext.cs:13</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_utils_1_1_api_headers_provider_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_api_headers_provider.html">Tgstation.Server.Host.Utils.ApiHeadersProvider</a></div><div class="ttdef"><b>Definition</b> <a href="_api_headers_provider_8cs_source.html#l00010">ApiHeadersProvider.cs:11</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_utils_1_1_api_headers_provider_html_a3def189103a04956cec01d2453f7318d"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_api_headers_provider.html#a3def189103a04956cec01d2453f7318d">Tgstation.Server.Host.Utils.ApiHeadersProvider.CreateAuthlessHeaders</a></div><div class="ttdeci">ApiHeaders CreateAuthlessHeaders()</div><div class="ttdoc">Attempt to create Api.ApiHeaders without checking for the presence of an Microsoft....</div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_utils_1_1_api_headers_provider_html_ad55f6c0d30e40d16b44c5b713e921a76"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_api_headers_provider.html#ad55f6c0d30e40d16b44c5b713e921a76">Tgstation.Server.Host.Utils.ApiHeadersProvider.HeadersException</a></div><div class="ttdeci">HeadersException? HeadersException</div><div class="ttdoc">The Api.HeadersException thrown when attempting to parse the ApiHeaders if any.</div><div class="ttdef"><b>Definition</b> <a href="_api_headers_provider_8cs_source.html#l00018">ApiHeadersProvider.cs:18</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_authority_1_1_i_rest_authority_invoker_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_authority_1_1_i_rest_authority_invoker.html">Tgstation.Server.Host.Authority.IRestAuthorityInvoker</a></div><div class="ttdoc">Invokes TAuthority methods and generates IActionResult responses.</div><div class="ttdef"><b>Definition</b> <a href="_i_rest_authority_invoker_02_t_authority_03_8cs_source.html#l00016">IRestAuthorityInvoker{TAuthority}.cs:18</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_core_1_1_i_server_control_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_core_1_1_i_server_control.html">Tgstation.Server.Host.Core.IServerControl</a></div><div class="ttdoc">Represents a service that may take an updated Host assembly and run it, stopping the current assembly...</div><div class="ttdef"><b>Definition</b> <a href="_i_server_control_8cs_source.html#l00009">IServerControl.cs:10</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_core_1_1_i_server_control_html_aa83c9bd0b17b1a40a4db3e7f4553374a"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_core_1_1_i_server_control.html#aa83c9bd0b17b1a40a4db3e7f4553374a">Tgstation.Server.Host.Core.IServerControl.UpdateInProgress</a></div><div class="ttdeci">bool UpdateInProgress</div><div class="ttdoc">Whether or not the server is currently updating.</div><div class="ttdef"><b>Definition</b> <a href="_i_server_control_8cs_source.html#l00019">IServerControl.cs:19</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_database_1_1_i_database_context_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_database_1_1_i_database_context.html">Tgstation.Server.Host.Database.IDatabaseContext</a></div><div class="ttdoc">Represents the database.</div><div class="ttdef"><b>Definition</b> <a href="_i_database_context_8cs_source.html#l00016">IDatabaseContext.cs:17</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_security_1_1_i_authentication_context_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_security_1_1_i_authentication_context.html">Tgstation.Server.Host.Security.IAuthenticationContext</a></div><div class="ttdoc">For creating and accessing authentication contexts.</div><div class="ttdef"><b>Definition</b> <a href="_i_authentication_context_8cs_source.html#l00011">IAuthenticationContext.cs:12</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_security_1_1_o_auth_1_1_i_o_auth_providers_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_security_1_1_o_auth_1_1_i_o_auth_providers.html">Tgstation.Server.Host.Security.OAuth.IOAuthProviders</a></div><div class="ttdoc">Contains IOAuthValidators.</div><div class="ttdef"><b>Definition</b> <a href="_i_o_auth_providers_8cs_source.html#l00010">IOAuthProviders.cs:11</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_security_1_1_o_auth_1_1_i_o_auth_providers_html_a733dbba10de53f9c5dfa8daf99b7cdab"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_security_1_1_o_auth_1_1_i_o_auth_providers.html#a733dbba10de53f9c5dfa8daf99b7cdab">Tgstation.Server.Host.Security.OAuth.IOAuthProviders.ProviderInfos</a></div><div class="ttdeci">Dictionary< OAuthProvider, OAuthProviderInfo > ProviderInfos()</div><div class="ttdoc">Gets a Dictionary<TKey, TValue> of the provider client IDs.</div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_swarm_1_1_i_swarm_service_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_swarm_1_1_i_swarm_service.html">Tgstation.Server.Host.Swarm.ISwarmService</a></div><div class="ttdoc">Used for swarm operations. Functions may be no-op based on configuration.</div><div class="ttdef"><b>Definition</b> <a href="_i_swarm_service_8cs_source.html#l00014">ISwarmService.cs:15</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_swarm_1_1_i_swarm_service_html_abda536785999219476ca30f6a0d16c56"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_swarm_1_1_i_swarm_service.html#abda536785999219476ca30f6a0d16c56">Tgstation.Server.Host.Swarm.ISwarmService.GetSwarmServers</a></div><div class="ttdeci">List< SwarmServerInformation >? GetSwarmServers()</div><div class="ttdoc">Gets the list of SwarmServerInformations in the swarm, including the current one.</div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_assembly_information_provider_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_assembly_information_provider.html">Tgstation.Server.Host.System.IAssemblyInformationProvider</a></div><div class="ttdoc">For retrieving the Assembly's location.</div><div class="ttdef"><b>Definition</b> <a href="_i_assembly_information_provider_8cs_source.html#l00010">IAssemblyInformationProvider.cs:11</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_assembly_information_provider_html_a600df9ffd79d4f94f59dfefccbcec099"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_assembly_information_provider.html#a600df9ffd79d4f94f59dfefccbcec099">Tgstation.Server.Host.System.IAssemblyInformationProvider.Version</a></div><div class="ttdeci">Version Version</div><div class="ttdoc">The version of the assembly.</div><div class="ttdef"><b>Definition</b> <a href="_i_assembly_information_provider_8cs_source.html#l00035">IAssemblyInformationProvider.cs:35</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_platform_identifier_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_platform_identifier.html">Tgstation.Server.Host.System.IPlatformIdentifier</a></div><div class="ttdoc">For identifying the current platform.</div><div class="ttdef"><b>Definition</b> <a href="_i_platform_identifier_8cs_source.html#l00008">IPlatformIdentifier.cs:9</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_platform_identifier_html_aa9bf3bd1082b7178f58cb1f36839550e"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_platform_identifier.html#aa9bf3bd1082b7178f58cb1f36839550e">Tgstation.Server.Host.System.IPlatformIdentifier.IsWindows</a></div><div class="ttdeci">bool IsWindows</div><div class="ttdoc">If the current platform is a Windows platform.</div><div class="ttdef"><b>Definition</b> <a href="_i_platform_identifier_8cs_source.html#l00014">IPlatformIdentifier.cs:14</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_i_api_headers_provider_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_i_api_headers_provider.html">Tgstation.Server.Host.Utils.IApiHeadersProvider</a></div><div class="ttdoc">Provides ApiHeaders.</div><div class="ttdef"><b>Definition</b> <a href="_i_api_headers_provider_8cs_source.html#l00008">IApiHeadersProvider.cs:9</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api_1_1_models_1_1_response.html">Tgstation.Server.Api.Models.Response</a></div><div class="ttdef"><b>Definition</b> <a href="_administration_response_8cs_source.html#l00005">AdministrationResponse.cs:6</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_api_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api.html">Tgstation.Server.Api</a></div><div class="ttdef"><b>Definition</b> <a href="_api_headers_8cs_source.html#l00019">ApiHeaders.cs:20</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_authority_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_authority.html">Tgstation.Server.Host.Authority</a></div><div class="ttdef"><b>Definition</b> <a href="_administration_authority_8cs_source.html#l00025">AdministrationAuthority.cs:26</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_components_1_1_interop_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_components_1_1_interop.html">Tgstation.Server.Host.Components.Interop</a></div><div class="ttdef"><b>Definition</b> <a href="_bridge_command_type_8cs_source.html#l00001">BridgeCommandType.cs:2</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_configuration_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_configuration.html">Tgstation.Server.Host.Configuration</a></div><div class="ttdef"><b>Definition</b> <a href="_control_panel_configuration_8cs_source.html#l00003">ControlPanelConfiguration.cs:4</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_controllers_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_controllers.html">Tgstation.Server.Host.Controllers</a></div><div class="ttdef"><b>Definition</b> <a href="_administration_controller_8cs_source.html#l00026">AdministrationController.cs:27</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_core_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_core.html">Tgstation.Server.Host.Core</a></div><div class="ttdef"><b>Definition</b> <a href="_command_pipe_manager_8cs_source.html#l00016">CommandPipeManager.cs:17</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_core_html_ae686e550e6b4c0a19a500e3dd9e4195cabe7bd44ba521a3628a4c1534d12d40a3"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_core.html#ae686e550e6b4c0a19a500e3dd9e4195cabe7bd44ba521a3628a4c1534d12d40a3">Tgstation.Server.Host.Core.ServerUpdateResult.UpdateInProgress</a></div><div class="ttdeci">@ UpdateInProgress</div><div class="ttdoc">Another update is already in progress.</div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_database_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_database.html">Tgstation.Server.Host.Database</a></div><div class="ttdef"><b>Definition</b> <a href="_database_collection_8cs_source.html#l00009">DatabaseCollection.cs:10</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_mutations_1_1_payloads_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_mutations_1_1_payloads.html">Tgstation.Server.Host.GraphQL.Mutations.Payloads</a></div><div class="ttdef"><b>Definition</b> <a href="_login_result_8cs_source.html#l00006">LoginResult.cs:7</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_models_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_models.html">Tgstation.Server.Host.Models</a></div><div class="ttdef"><b>Definition</b> <a href="_models_2_chat_bot_8cs_source.html#l00008">ChatBot.cs:9</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_security_1_1_o_auth_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_security_1_1_o_auth.html">Tgstation.Server.Host.Security.OAuth</a></div><div class="ttdef"><b>Definition</b> <a href="_discord_o_auth_validator_8cs_source.html#l00009">DiscordOAuthValidator.cs:10</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_security_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_security.html">Tgstation.Server.Host.Security</a></div><div class="ttdef"><b>Definition</b> <a href="_authentication_context_8cs_source.html#l00007">AuthenticationContext.cs:8</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_swarm_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_swarm.html">Tgstation.Server.Host.Swarm</a></div><div class="ttdef"><b>Definition</b> <a href="_i_swarm_operations_8cs_source.html#l00008">ISwarmOperations.cs:9</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_swarm_html_acfc07eda2ac8eff75a6eef3f90bdf3e0ae06d1ba70f1331e9f9a113cc2f887d3f"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_swarm.html#acfc07eda2ac8eff75a6eef3f90bdf3e0ae06d1ba70f1331e9f9a113cc2f887d3f">Tgstation.Server.Host.Swarm.SwarmRegistrationResult.Unauthorized</a></div><div class="ttdeci">@ Unauthorized</div><div class="ttdoc">The swarm private keys didn't match.</div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_system_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_system.html">Tgstation.Server.Host.System</a></div><div class="ttdef"><b>Definition</b> <a href="_assembly_information_provider_8cs_source.html#l00008">AssemblyInformationProvider.cs:9</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_utils_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_utils.html">Tgstation.Server.Host.Utils</a></div><div class="ttdef"><b>Definition</b> <a href="_graph_q_l_git_lab_client_8cs_source.html#l00006">GraphQLGitLabClient.cs:7</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
|
|
</small></address>
|
|
</body>
|
|
</html>
|