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

4.4K
Visualizações
Error 400: invalid_request when using Google Oauth 2.0 in local

Authorization Error Error 400: invalid_request

You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy for keeping apps secure.

You can let the app developer know that this app doesn't comply with one or more Google validation rules.

enter image description here

What I've tried so far:

  • Add a custom domain in the host file so I can go to the website using something like mywebsite.com:4200. Same error
  • Make localhost HTTPS using self-signed certificates, google says the domain is not a valid origin even though I already added https://localhost:4200 in the console.

The OAuth works fine when in the test and production environment, the problem is I cannot test the application in my local machine. This only happened this month, last month this was intermittent and a refresh would fix the issue.

If it helps, I am using ng-gapi. Here's my config:

import { NgGapiClientConfig } from 'ng-gapi/config/GoogleApiConfig';
import { environment } from '@env/environment';

export const gapiClientConfig: NgGapiClientConfig = {
  client_id: environment.clientId,
  discoveryDocs: [],
  scope: 'https://www.googleapis.com/auth/userinfo.email',
};
over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

To solve this, create a new google project and set the publishing status to testing.

enter image description here

over 4 years ago · Santiago Trujillo Relatório
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