Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

149
Visualizações
Shopify and aws cognito integration

I am trying to integrate AWS Cognito as an authentication service for Shopify users. I used miniOrange service as an identity broker between Cognito and Shopify by sharing the client id and client secret and Amazon Cognito domain. Currently it's working perfect with Cognito hosted UI, but I want to use my own UI and logic while maintaining this connection between Shopify and Cognito. What I done so far is that I am using Cognito domain to and I am calling in nodejs :

{AUTH_DOMAIN}/oauth2/authorize?response_type=${RESPONSE_TYPE}&client_id=${CLIENT_ID}&redirect_uri=${REDIRECT_URI}&scope=${SCOPE}

which will give me the csrf in a cookie header, which will be used in the second api call along with the username and password:


      const form = {
        _csrf: `${XSRFTOKEN.split(";")[0].split("=")[1]}`,
        username: `${USERNAME}`,
        password: `${PASSWORD}`,
      };
  
      var formData = querystring.stringify(form);
      var contentLength = formData.length;

      request(
        {
          headers: {
            "Content-Length": contentLength,
            "Content-Type": "application/x-www-form-urlencoded",
            Cookie: `${XSRFTOKEN}`,
          },
uri:https://${AUTH_DOMAIN}/loginresponse_type=${RESPONSE_TYPE}&client_id=${CLIENT_ID}&redirect_uri=${REDIRECT_URI},
          body: formData,
          method: "POST",
        }

this will give me the authorization code which will then I am redirecting to the redirect URL with the code as a param, but it's failing to open Shopify , there is something missing I can't figure out

any help?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda