mirror of
https://github.com/BillyCool/MariesWonderland.git
synced 2026-03-24 07:52:23 +01:00
Update hooks and server to get past initial authentication
This commit is contained in:
@@ -31,6 +31,7 @@ public static class Program
|
||||
|
||||
// Add HTTP middleware
|
||||
app.MapGet("/", () => "Marie's Wonderland is open for business :marie:");
|
||||
app.MapGet("/web/static/{languagePath}/terms/termsofuse", (string languagePath) => $"<html><head><title>Terms of Service</title></head><body><h1>Terms of Service</h1><p>Language: {languagePath}</p><p>Version: ###123###</p></body></html>"); // Expects the version wrapped in delimiters like "###123###".
|
||||
app.MapGet("/{**catchAll}", (string catchAll) => $"You requested: {catchAll}");
|
||||
app.MapPost("/{**catchAll}", (string catchAll) => $"You requested: {catchAll}");
|
||||
app.MapPut("/{**catchAll}", (string catchAll) => $"You requested: {catchAll}");
|
||||
|
||||
@@ -22,7 +22,7 @@ public class UserService : Art.Framework.ApiNetwork.Grpc.Api.User.UserService.Us
|
||||
ExpireDatetime = Timestamp.FromDateTime(DateTime.UtcNow.AddDays(30)),
|
||||
UserId = 1234567890123450000,
|
||||
SessionKey = "1234567890",
|
||||
Signature = "V2UnbGxQbGF5QWdhaW5Tb21lZGF5TXJNb25zdGVyIQ==" // Possibly base64 encoded
|
||||
Signature = "V2UnbGxQbGF5QWdhaW5Tb21lZGF5TXJNb25zdGVyIQ=="
|
||||
});
|
||||
}
|
||||
|
||||
@@ -66,7 +66,11 @@ public class UserService : Art.Framework.ApiNetwork.Grpc.Api.User.UserService.Us
|
||||
|
||||
public override Task<RegisterUserResponse> RegisterUser(RegisterUserRequest request, ServerCallContext context)
|
||||
{
|
||||
return Task.FromResult(new RegisterUserResponse());
|
||||
return Task.FromResult(new RegisterUserResponse
|
||||
{
|
||||
UserId = 1234567890123450000,
|
||||
Signature = "V2UnbGxQbGF5QWdhaW5Tb21lZGF5TXJNb25zdGVyIQ=="
|
||||
});
|
||||
}
|
||||
|
||||
public override Task<SetAppleAccountResponse> SetAppleAccount(SetAppleAccountRequest request, ServerCallContext context)
|
||||
@@ -109,7 +113,7 @@ public class UserService : Art.Framework.ApiNetwork.Grpc.Api.User.UserService.Us
|
||||
return Task.FromResult(new TransferUserResponse
|
||||
{
|
||||
UserId = 1234567890123450000,
|
||||
Signature = "V2UnbGxQbGF5QWdhaW5Tb21lZGF5TXJNb25zdGVyIQ==" // Possibly base64 encoded
|
||||
Signature = "V2UnbGxQbGF5QWdhaW5Tb21lZGF5TXJNb25zdGVyIQ=="
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user