Cyber tweaks

This commit is contained in:
AffectedArc07
2022-07-28 17:36:22 +01:00
parent 00eab2d917
commit d1a3812664
2 changed files with 5 additions and 10 deletions
+2 -2
View File
@@ -4,8 +4,8 @@
<Import Project="ControlPanelVersion.props" />
<PropertyGroup>
<TgsCoreVersion>4.17.0</TgsCoreVersion>
<TgsConfigVersion>4.1.0</TgsConfigVersion>
<TgsApiVersion>9.4.0</TgsApiVersion>
<TgsConfigVersion>4.2.0</TgsConfigVersion>
<TgsApiVersion>9.5.0</TgsApiVersion>
<TgsApiLibraryVersion>9.4.0</TgsApiLibraryVersion>
<TgsClientVersion>10.5.0</TgsClientVersion>
<TgsDmapiVersion>6.0.5</TgsDmapiVersion>
@@ -10,7 +10,7 @@ using Tgstation.Server.Host.System;
namespace Tgstation.Server.Host.Security.OAuth
{
/// <summary>
/// OAuth validator for Discord.
/// OAuth validator for Invision Community (selfhosted).
/// </summary>
sealed class InvisionCommunityOAuthValidator : GenericOAuthValidator
{
@@ -18,15 +18,10 @@ namespace Tgstation.Server.Host.Security.OAuth
public override OAuthProvider Provider => OAuthProvider.InvisionCommunity;
/// <inheritdoc />
protected override Uri TokenUrl => new Uri($"{BaseProtocolPath}/oauth/token/");
protected override Uri TokenUrl => new Uri($"{OAuthConfiguration.ServerUrl}/oauth/token/"); // This needs the trailing slash or it doesnt get the token. Do not remove.
/// <inheritdoc />
protected override Uri UserInformationUrl => new Uri($"{BaseProtocolPath}/api/core/me");
/// <summary>
/// Base path to the server's OAuth endpoint.
/// </summary>
string BaseProtocolPath => $"{OAuthConfiguration.ServerUrl}";
protected override Uri UserInformationUrl => new Uri($"{OAuthConfiguration.ServerUrl}/api/core/me");
/// <summary>
/// Initializes a new instance of the <see cref="InvisionCommunityOAuthValidator"/> class.