Added allowlist and denylist, fixed patchy configuration with proper options models, fixed api middleware authorization issues
This commit is contained in:
13
src/Shared/Models/OptionModels.cs
Normal file
13
src/Shared/Models/OptionModels.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace Shared.Models;
|
||||
|
||||
public class ApiKeyOptions
|
||||
{
|
||||
public string[]? ApiKeys { get; set; }
|
||||
}
|
||||
|
||||
public class ServerOptions
|
||||
{
|
||||
public required string BaseUri { get; set; }
|
||||
public string? ApiKey { get; set; }
|
||||
public string? Searchdomain { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user