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

120
Vistas
Is it possible to get Windows Username with Vue.js in an Intranet context?

I have a frontend using Vue.js and a backend using Java Spring.

I'm trying to get the Windows Username and display it.

So for this, I activated my front end server as an Intranet server in my Windows params. I saw here that there's a possible way to get the windows username with IIS by activing this option.

But it is possible, with Vue.js, to get it without using IIS or any other way?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

If you do not want to use Microsoft Auth you can set a environment variable when you launch your app from server, and then you can access your user name variable from process:

export default {
   name: 'PageOrComponent',
   data() {
     return {
       userName: process.env.USER_NAME
     }
   }
}
about 4 years ago · Juan Pablo Isaza 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