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

147
Visualizações
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 à 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