PATCH missing Bruno config

This commit is contained in:
2025-08-11 15:43:25 +02:00
parent fda43855cc
commit 19a78df4c6
3 changed files with 6 additions and 6 deletions

View File

@@ -18,9 +18,9 @@ auth:oauth2 {
refresh_token_url:
client_id: {{google_client_id}}
client_secret: {{google_secret}}
scope: profile email
scope: profile email openid
state:
pkce: false
pkce: true
credentials_placement: body
credentials_id: credentials
token_placement: header

View File

@@ -1,9 +1,8 @@
vars {
base_url: http://localhost:8080/api/v1
uuid: OswQZ9CRRRasMCMEWZ5uqw
uuid:
}
vars:secret [
google_client_id,
google_secret,
token
google_secret
]

View File

@@ -4,6 +4,7 @@ import java.util.Date;
import com.auth0.jwt.JWT;
import com.auth0.jwt.JWTVerifier;
import com.auth0.jwt.algorithms.Algorithm;
import com.auth0.jwt.exceptions.JWTDecodeException;
import com.auth0.jwt.exceptions.TokenExpiredException;
import com.auth0.jwt.interfaces.DecodedJWT;
import org.springframework.beans.factory.annotation.Value;
@@ -47,7 +48,7 @@ public class JwtService {
}
return jwt.getClaim(USER_ID_CLAIM).asLong();
} catch (JwtException | IllegalArgumentException | TokenExpiredException ignored) {
} catch (JwtException | IllegalArgumentException | TokenExpiredException | JWTDecodeException ignored) {
return null;
}
}