Fix bad import params
Docker Build and Release Upload / build (push) Successful in 1m27s

This commit is contained in:
2025-07-26 11:58:04 -07:00
parent 32980f6075
commit 478ce2f592
+2 -3
View File
@@ -12,17 +12,16 @@ using System.Text;
namespace Auth.Controllers { namespace Auth.Controllers {
[ApiController] [ApiController]
[Route("api/v1/mauth/")] [Route("api/auth/")]
public class MAuthController : MistoxControllerBase { public class MAuthController : MistoxControllerBase {
public MAuthController(DatabaseService db) : base(db) { } 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")] [HttpGet("publickey")]
public IActionResult PublicKey() { public IActionResult PublicKey() {
try { try {
RSA rsa = AuthJWT.RsaPublicKey.Rsa; RSA rsa = AuthJWT.RsaPublicKey.Rsa;
rsa.ImportParameters(AuthJWT.RsaPublicKey.Parameters);
byte[] publicKey = rsa.ExportSubjectPublicKeyInfo(); byte[] publicKey = rsa.ExportSubjectPublicKeyInfo();
string base64 = Convert.ToBase64String(publicKey); string base64 = Convert.ToBase64String(publicKey);
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();