PATCH missing Bruno config
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
]
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user