JSPM

  • Created
  • Published
  • Downloads 364
  • Score
    100M100P100Q76129F
  • License MIT

Package Exports

  • verdaccio-github-oauth-ui

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (verdaccio-github-oauth-ui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

verdaccio-github-oauth-ui

About

A verdaccio plugin that uses GitHub OAuth.

When clicking the login button, instead of filling in a login form, you are asked to log in with GitHub.

After successful login, the necessary npm config commands are shown at the top. You can then run npm whoami --registry REGISTRY_URL and start publishing packages.

The plugin is similar to verdaccio-github-oauth but also changes the UI login behaviour and there is no need to install a custom CLI to authenticate with the registry.

Install

$ npm install verdaccio-github-oauth-ui

Configuration

The plugin requires the following additional configuration:

middlewares:
  github-oauth-ui:
    client-id: $GITHUB_OAUTH_CLIENT_ID # required
    client-secret: $GITHUB_OAUTH_CLIENT_SECRET # required

auth:
  github-oauth-ui:
    org: $GITHUB_OAUTH_ORG # required, people within this org will be able to auth

When creating the OAuth app at github.com, use REGISTRY_URL/-/oauth/callback as the callback URL.

License

MIT