npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@ioleksiy/nocobase-oauth2-proxy-auth

v1.8.4

Published

oAuth2-Proxy plugin: authenticate via oauth2-proxy headers and enforce user existence

Readme

NocoBase OAuth2 Proxy Auth

Authenticate NocoBase requests against users provisioned in your database when fronted by oauth2-proxy. The plugin inspects the x-auth-request-email header provided by oauth2-proxy, verifies that the user exists, and attaches the user to the NocoBase request context.

Installation

npm install @ioleksiy/nocobase-oauth2-proxy-auth

Compatibility

Requires @nocobase/server version >=0.19.0 <2.0.0 (includes the current 1.x releases).

Usage

Register the plugin inside your NocoBase application. The middleware will:

  1. Read the x-auth-request-email header set by oauth2-proxy after a successful login.
  2. Look up the matching user inside the users repository.
  3. Reject the request with 401 if the header is missing or 403 if the user doesn't exist.
  4. Attach the user to ctx.state.currentUser for downstream handlers.
const oauth2ProxyAuth = require('@ioleksiy/nocobase-oauth2-proxy-auth');

module.exports = ({ app }) => {
  app.plugin(oauth2ProxyAuth);
};

Make sure oauth2-proxy is configured to forward the X-Auth-Request-Email header and that the users authenticated through oauth2-proxy also exist in your NocoBase instance.

Development

  • Update the package version in package.json before publishing new releases.
  • The repository includes a GitHub Actions workflow that automatically publishes the package to npm when commits are pushed to the main branch or when the workflow is triggered manually. Configure the NPM_TOKEN secret in the repository to enable automated publishing.

License

MIT