aboutsummaryrefslogtreecommitdiff
path: root/libs/VNLib.Plugins.Sessions.OAuth/src/Endpoints
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-03-25 14:25:21 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2023-03-25 14:25:21 -0400
commita37e01df6b8c10525ea4311344959fe5273059c1 (patch)
tree0d8cc9775a08a3ad9ddb4a4be71a54066945899e /libs/VNLib.Plugins.Sessions.OAuth/src/Endpoints
parent373247c40cefdd5920b3d0e03c7e42239269c5bd (diff)
Defer cors to host/middleware/user code
Diffstat (limited to 'libs/VNLib.Plugins.Sessions.OAuth/src/Endpoints')
-rw-r--r--libs/VNLib.Plugins.Sessions.OAuth/src/Endpoints/AccessTokenEndpoint.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/VNLib.Plugins.Sessions.OAuth/src/Endpoints/AccessTokenEndpoint.cs b/libs/VNLib.Plugins.Sessions.OAuth/src/Endpoints/AccessTokenEndpoint.cs
index 9f0f35d..a867152 100644
--- a/libs/VNLib.Plugins.Sessions.OAuth/src/Endpoints/AccessTokenEndpoint.cs
+++ b/libs/VNLib.Plugins.Sessions.OAuth/src/Endpoints/AccessTokenEndpoint.cs
@@ -54,11 +54,11 @@ namespace VNLib.Plugins.Sessions.OAuth.Endpoints
private readonly Task<ReadOnlyJsonWebKey?> JWTVerificationKey;
//override protection settings to allow most connections to authenticate
+ ///<inheritdoc/>
protected override ProtectionSettings EndpointProtectionSettings { get; } = new()
{
DisableBrowsersOnly = true,
- DisableSessionsRequired = true,
- DisableVerifySessionCors = true
+ DisableSessionsRequired = true
};
public AccessTokenEndpoint(PluginBase pbase, IConfigScope config)
@@ -120,8 +120,8 @@ namespace VNLib.Plugins.Sessions.OAuth.Endpoints
}
//Convert the clientid and secret to lowercase
- clientId = clientId.ToLower();
- secret = secret.ToLower();
+ clientId = clientId.ToLower(null);
+ secret = secret.ToLower(null);
//Convert secret to private string that is unreferrenced
using PrivateString secretPv = new(secret, false);