Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

4.4K
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda