• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
    • Questions
    • Teachers
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

87
Views
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?

almost 3 years ago · Juan Pablo Isaza
1 answers
Answer question

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
     }
   }
}
almost 3 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error