Skip to content

[FEATURE] VSR: Add web login (using github) #17

Description

@darcyclarke

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] VSR: Add expanded user profile scopes #15) 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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions