1.0.5 • Published 4 years ago

verdaccio-github-auth v1.0.5

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

verdaccio-github-auth

Travis Build Status

This is a simple Github Authentication plugin for verdaccio.

Config

github-auth:
     org: cthos # OPTIONAL: Filter the user's teams to this organization
     mode: token # token or basic. Token expects an auth token as the password. Basic is raw username/password for github. DEFAULT: token
     cachettl: 5 # OPTIONAL: How long to cache the user's teams in minutes. DEFAULT: 5
     orgmode: true # OPTIONAL: allow orgs to be placed in the `access` stanza.

    octokit: { # OPTIONAL: Configuration options to override Octokit
        baseUrl: https://git.myorg.com/v3 # The endpoint to use for the Github API
    }


    '**':
    # Access is determined by team permissions, but github username is also valid.
      access: team1 team2 awesomteam cthos

    '@volcano/*':
      access: org:volcano # allows access to everyone in the volcano org

Gotchas

  • You cannot use basic with 2FA as far as I'm aware - you'd need to use the token type.
  • The personal access token needs read:org and read:user.

Current Limitations

  • Teams are cached in Memory, so a lot of users could result in high memory usage and I've not profiled the impact.
1.0.5

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

1.0.0-alpha.5

6 years ago

1.0.0-alpha.4

6 years ago

1.0.0-alpha.3

6 years ago

1.0.0-alpha.2

6 years ago

1.0.0-alpha.1

6 years ago