mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 15:07:03 +01:00
Cyber tweaks
This commit is contained in:
+2
-2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user