mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 15:28:25 +00:00
Fix Vercel get apps response encoding
This commit is contained in:
@@ -146,7 +146,8 @@ const getAppsVercel = async ({
|
|||||||
const res = (
|
const res = (
|
||||||
await axios.get(`${INTEGRATION_VERCEL_API_URL}/v9/projects`, {
|
await axios.get(`${INTEGRATION_VERCEL_API_URL}/v9/projects`, {
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${accessToken}`
|
Authorization: `Bearer ${accessToken}`,
|
||||||
|
'Accept-Encoding': 'application/json'
|
||||||
},
|
},
|
||||||
...( integrationAuth?.teamId ? {
|
...( integrationAuth?.teamId ? {
|
||||||
params: {
|
params: {
|
||||||
@@ -185,7 +186,8 @@ const getAppsNetlify = async ({
|
|||||||
const res = (
|
const res = (
|
||||||
await axios.get(`${INTEGRATION_NETLIFY_API_URL}/api/v1/sites`, {
|
await axios.get(`${INTEGRATION_NETLIFY_API_URL}/api/v1/sites`, {
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${accessToken}`
|
Authorization: `Bearer ${accessToken}`,
|
||||||
|
'Accept-Encoding': 'application/json'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
).data;
|
).data;
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ const exchangeCodeAzure = async ({
|
|||||||
new URLSearchParams({
|
new URLSearchParams({
|
||||||
grant_type: 'authorization_code',
|
grant_type: 'authorization_code',
|
||||||
code: code,
|
code: code,
|
||||||
scope: 'https://vault.azure.net/.default openid offline_access', // TODO: do we need all these permissions?
|
scope: 'https://vault.azure.net/.default openid offline_access',
|
||||||
client_id: CLIENT_ID_AZURE,
|
client_id: CLIENT_ID_AZURE,
|
||||||
client_secret: CLIENT_SECRET_AZURE,
|
client_secret: CLIENT_SECRET_AZURE,
|
||||||
redirect_uri: `${SITE_URL}/integrations/azure-key-vault/oauth2/callback`
|
redirect_uri: `${SITE_URL}/integrations/azure-key-vault/oauth2/callback`
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ export default function FlyioCreateIntegrationPage() {
|
|||||||
return (
|
return (
|
||||||
<div className="h-full w-full flex justify-center items-center">
|
<div className="h-full w-full flex justify-center items-center">
|
||||||
<Card className="max-w-md p-8 rounded-md">
|
<Card className="max-w-md p-8 rounded-md">
|
||||||
<CardTitle className='text-center'>Render Integration</CardTitle>
|
<CardTitle className='text-center'>Fly.io Integration</CardTitle>
|
||||||
<FormControl
|
<FormControl
|
||||||
label="Fly.io Access Token"
|
label="Fly.io Access Token"
|
||||||
errorText={accessTokenErrorText}
|
errorText={accessTokenErrorText}
|
||||||
|
|||||||
Reference in New Issue
Block a user