From 478ce2f5923b3e67d3e21d72bc1565a6464110b8 Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Sat, 26 Jul 2025 11:58:04 -0700 Subject: [PATCH] Fix bad import params --- src/Server/Controllers/MAuth.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Server/Controllers/MAuth.cs b/src/Server/Controllers/MAuth.cs index 5583771..aaf722d 100644 --- a/src/Server/Controllers/MAuth.cs +++ b/src/Server/Controllers/MAuth.cs @@ -12,17 +12,16 @@ using System.Text; namespace Auth.Controllers { [ApiController] - [Route("api/v1/mauth/")] + [Route("api/auth/")] public class MAuthController : MistoxControllerBase { public MAuthController(DatabaseService db) : base(db) { } - // Sends the public key to clients so they can verify sessions. + // Sends the public key to clients so they can verify sessions. - Verified working [HttpGet("publickey")] public IActionResult PublicKey() { try { RSA rsa = AuthJWT.RsaPublicKey.Rsa; - rsa.ImportParameters(AuthJWT.RsaPublicKey.Parameters); byte[] publicKey = rsa.ExportSubjectPublicKeyInfo(); string base64 = Convert.ToBase64String(publicKey); StringBuilder sb = new StringBuilder();