Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add web login (using github) #8

Open
7 tasks
darcyclarke opened this issue Dec 17, 2024 · 1 comment
Open
7 tasks

[FEATURE] Add web login (using github) #8

darcyclarke opened this issue Dec 17, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@darcyclarke
Copy link
Member

Description

User's aren't able to use npm login or any other package manager's web login flow to generate a .npmrc (or similar) file with the corresponding user auth token. This is partly because vsr does not have traditional user credentials yet (ie. basic auth creds like username+password).

Suggestion

  • Add new GitHub login/authentication mode
    • Leverage an expanded user profile (ie. [FEATURE] Add expanded user profile scopes #6) with user.github to tie github authentication to a user profile/auth token
    • When active, user tokens with user:auth will be connected to the corresponding user.name & user.github account for the purpose of web login
    • A login for that user.name / user.github account will rotate the token
    • If no existing token exists, it's as if the user does not exist
  • Add new logout endpoint
    • A logout will remove the token's uuid but not the token entry itself (as it will be rotated/updated on future logins)
@darcyclarke darcyclarke added the enhancement New feature or request label Dec 17, 2024
@raashidanwar
Copy link

Hi @darcyclarke ,

I would like to work on this. I already worked on login flow npmjs.com at github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants