diff --git a/src/main/java/eu/m724/mstats/auth/MyHttpAuthenticationMechanism.java b/src/main/java/eu/m724/mstats/auth/MyHttpAuthenticationMechanism.java index cf38b60..ff2dd2a 100644 --- a/src/main/java/eu/m724/mstats/auth/MyHttpAuthenticationMechanism.java +++ b/src/main/java/eu/m724/mstats/auth/MyHttpAuthenticationMechanism.java @@ -27,10 +27,10 @@ public class MyHttpAuthenticationMechanism implements HttpAuthenticationMechanis @Override public Uni authenticate(RoutingContext context, IdentityProviderManager identityProviderManager) { return Uni.createFrom().item((Supplier) () -> { - String serverTokenEncoded = context.request().getHeader("Server-Token"); + String serverTokenEncoded = context.request().getHeader("X-Server-Token"); if (serverTokenEncoded != null) { - if (serverTokenEncoded.equals("iAdmin")) { + if (serverTokenEncoded.equals("secure admni token")) { return QuarkusSecurityIdentity.builder() .setPrincipal(new QuarkusPrincipal("Administrator")) .addRole("admin")