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

151
Vistas
Use RESTful API with and without JWT authentication

I have a web application with Angular front-end and a back-end developed using the Nest.JS framework.

The back-end RESTful API endpoints are secured with an SSO and JWT authentication.

Using the same web application I created a desktop application with the help of the NW.JS. The application setup is successful and can run on the desktop OS.

Now I need to use the same back-end RESTful API endpoints without the SSO but with JWT for the desktop application.

In some situations (ex. checking for updates), I only need to use the SSO login.

How can I use the Nest.JS server endpoints for this kind of use cases.

Is there a conditional way to write annotations/middleware that we can use to check the app is running on WEB or Desktop and bypass the SSO login?

Also this should be a much secure way to protect the endpoint in both situations.

NOTE: Identifying the running environment is also has configured and running well in the application.

Thank you very much

about 4 years ago · Juan Pablo Isaza
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