Skip to content

Commit

Permalink
SecretMiddleware -> SharedSecretAuthMiddleware
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed Sep 9, 2024
1 parent f9c9493 commit 1869021
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

namespace Refresh.PresenceServer.ApiServer.Middlewares;

public class SecretMiddleware : IMiddleware
public class SharedSecretAuthMiddleware : IMiddleware
{
private readonly PresenceServerConfig _config;

public SecretMiddleware(PresenceServerConfig config)
public SharedSecretAuthMiddleware(PresenceServerConfig config)
{
this._config = config;
}
Expand Down
2 changes: 1 addition & 1 deletion Refresh.PresenceServer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static async Task Main()
server.DiscoverEndpointsFromAssembly(typeof(ApiEndpoints).Assembly);
server.AddConfig(config);

server.AddMiddleware(new SecretMiddleware(config));
server.AddMiddleware(new SharedSecretAuthMiddleware(config));
},
};

Expand Down

0 comments on commit 1869021

Please sign in to comment.