how can i get the userID when the user using my Vscode Extension? - vscode-extensions

I want to obtain the unique id of the user who uses the VSCODE extension, or allow the user to log in to their own unique account password every time before using the VSCODE extension, similar to git, if it is not possible, it is also sufficient for the user to enter a unique id before using the VSCODE extension my needs.

Related

Save passwords and usernames for different projects with autofill

Through my developer career i've been on different kind of projects where a user needs to login with username and password. As I'm completing the project i've encounter the need to test some user account. The solution that i've found yet is to save the password and username on a text file and to use to login. I would like to know if someone has a better idea to ease this process.
I've tried to use some extension such as last pass but as i'm using "localhost:4200" it tries to auto fill password and username from other projects.

RN or Expo; Saving user data before user signs up

I'm creating an app where users are allowed to freely use the app up to a certain point of the app.
But I still need to save certain data of the user who haven't fully completed the signup yet. eg) what they previously selected, what they previously liked.
Is there a way to correctly gather a unique identifier for the user from using Expo?
eg;
Maybe there is a unique device token(or device ID) that I can use, save data using that as a primary key in my 'Users' table in DB.
Resources I found:
https://docs.expo.dev/versions/latest/sdk/application/#applicationapplicationid
-> Looks like a bunch of options are provided, but not sure which one to choose.
https://github.com/expo/expo/issues/1534
A post from a few years ago suggested using Expo.Constants.deviceId - which I can't find in the latest doc.

Best way to notify user about application access?

I have application where administrators have to create accounts for the new users. Basically there is no option for random user to create account and access this app. The admin would have to enter some basic info like First, Last name, Email address, User name and then comes to the password. I have algorithm that generates unique passwords. I'm looking for the better option to handle this situation.
The old application worked this way: admin enters info, generates password and there is an option either to automatically notify users via email or admin will contact directly that user and provide login info. This method seems very inefficient and insecure at the same time. Sending info like user name and password in the email is definitely not recommended nowadays. I was wondering what would be a good approach?
Should I generate unique link with expiration date where user can enter the password? Or there is better way to handle this situation? I use JavaScript, JQuery and ColdFusion 2016 for this project.

How to Assign a project to specific user only in SonarQube?

I want that when a project is scanned and it's scan result is created only Admin and a specific user can see that project in dashboard and all other places and only he can access that project. Also I want to send email to that user when project was scanned.
I know I can assign role to user and set permissions for it by going to that project, but should I have follow all these steps for this? Can't I just select a user from UI so that only that selected user can view that project?
You must define project permissions for the scanned project with only that user and admin having the permission to "Browse" the project.
If you need to do that repeatedly you may use permission templates.
See http://docs.sonarqube.org/display/SONAR/Authorization#Authorization-ProjectPermissions.
In my case I wanted to Assgin one project to a whole group of users in SonarQube 6.7.3 so the steps where the following:
Administration->Projects->Managment->Actions(of the desired project)->edit Permissions
And then, I don't know why but the current users and groups registered are not shown instantly so what you need to do is to use the search tool and search for the group or user that you are looking for. They will appear below so you'll be able to tick the permissions that you want. Also you should select the private radio button so nobody but the users or groups you selected can access the project.

How to automatically discover and add users via LDAP in SonarQube?

I guess this question basically boils down to some misunderstanding that I have about how the SonarQube LDAP plugin works in general. We have integrated the LDAP plugin and our users are authenticating against our corporate LDAP server. When we we want to create a new group and add users to that group for a new project, we have assumed that the users themselves must authenticate into SonarQube first so they get added as a user to SonarQube. After that, then we are able to put them into the appropriate groups that they belong to. This is a pain for our administrators since the people that need to be added are logging in at differing times or forgetting to log in at all. What we would like is something that Nexus provides where we can do a lookup of that user's account id, then add them and place them into the appropriate group(s). In that way, the user is not bothered by having to login first and then the administrator has to give the privileges and then the user logs out and logs back in. Is this a misunderstanding on my part? I ask because when I go to the users page and click on 'Create New User' it not only asks for the user's id but also the user's password which I obviously don't know so this is telling me that this will be a local account.
By default SonarQube's LDAP plugin works like you think it does. You can configure LDAP group mapping so that when the user enrolls, he/she is automatically added to the appropriate group.
In other words, create the group for the project in SonarQube, and then create the same group in LDAP and add users to it. Then when users login for the first time they will be in the appropriate group, and on each subsequent login any group changes will be reflected in SonarQube.
This, in my opinion, is infact better than adding users manually.