Simplifies authentication logic and adds VIN.
All checks were successful
Build, Push and Run Container / build (push) Successful in 35s

Removes temporary test endpoints and refactors the authorize endpoint.

Adds support for VIN notifications for a new vehicle by adding it to the dictionary.
This commit is contained in:
2025-10-15 19:13:50 +02:00
parent f39d900fbb
commit 6ac6d05f5f
2 changed files with 6 additions and 104 deletions

View File

@@ -153,7 +153,11 @@ public class MessageProcessor
public class MessageProcessorConfiguration
{
public string PushoverAPIKey { get; set; } = "acr9fqxafqeqjpr4apryh17m4ak24b";
public Dictionary<string, string> VinNotifications { get; set; } = new Dictionary<string, string>() { { "5YJ3E7EB7KF291652", "u2ouaqqu5gd9f1bq3rmrtwriumaffu"} /*Zoli*/ };
public Dictionary<string, string> VinNotifications { get; set; } = new Dictionary<string, string>()
{
{ "5YJ3E7EB7KF291652", "u2ouaqqu5gd9f1bq3rmrtwriumaffu"}, /*Zoli*/
{ "LRW3E7EK4NC482668", "udbz5g2hi24m4wcanx44qqkwf7r1c7" }
};
}
file static class DateTimeOffsetExtensions