From ca376e10cb1045cce4c03a7c98a6a460796dc71e Mon Sep 17 00:00:00 2001 From: d3coder Date: Thu, 23 May 2024 22:21:46 +0500 Subject: [PATCH] [FIX] Fix OpenID access token validation --- .../launchserver/auth/core/openid/OpenIDAuthenticator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/openid/OpenIDAuthenticator.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/openid/OpenIDAuthenticator.java index 29870c32..03e77f77 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/openid/OpenIDAuthenticator.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/openid/OpenIDAuthenticator.java @@ -39,7 +39,7 @@ public OpenIDAuthenticator(OpenIDConfig openIDConfig) { this.jwtParser = Jwts.parser() .keyLocator(keyLocator) .requireIssuer(openIDConfig.issuer()) - .requireAudience(openIDConfig.clientId()) + .require("azp", openIDConfig.clientId()) .build(); }