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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@bunnarin/plugin-auth-oidc

v2.0.2

Published

An enhanced OpenID Connect (OIDC) authentication plugin for NocoBase. This plugin extends the default OIDC capabilities with advanced mapping, dynamic binding, and improved compatibility with various identity providers.

Readme

@bunnarin/plugin-auth-oidc

An enhanced OpenID Connect (OIDC) authentication plugin for NocoBase. This plugin extends the default OIDC capabilities with advanced mapping, dynamic binding, and improved compatibility with various identity providers.

important

for some reason nocobase doesn't yarn install for plugin that doesn't start with @nocobase/plugin-. so you'll have to cd into storage/plugins/@bunnarin/plugin-auth-oidc and run yarn install before you can enable it in the plugin manager.

WHEN developing this thing, make sure to set OIDC_REDIRECT_BASE_URL in .env if using cloudflare tunnel or something equivalent. or else nothing works

Features

1. Advanced User Binding (Multiple Fields)

Instead of being restricted to a single field (like email or username), you can now select multiple fields to bind the OIDC identity to an existing NocoBase user.

  • If a user has multiple emails (e.g., work and personal) stored in different columns, you can select both.
  • The plugin will automatically construct an $or query to find and authenticate the user if the OIDC payload matches any of the selected bind fields.

2. Field Mapping with "Overwrite" Sync

When mapping fields from the OIDC provider's callback data to your NocoBase users collection, you can now toggle the Overwrite option for each specific mapped field.

  • Enabled (Overwrite: true): Every time the user logs in via OIDC, the plugin will sync the latest data from the provider (e.g., updating their name, phone_number, or picture) to the NocoBase database, overwriting existing values.
  • Disabled (Overwrite: false): The plugin will only populate the field if the NocoBase user record currently has no value for it.

3. Custom Authorization URL Query Parameters

You can inject custom query parameters directly into the authorization URL when redirecting users to the OIDC provider.

  • Useful for providers that require specific flags like prompt=consent, access_type=offline, or custom branding parameters.
  • Configurable directly from the Admin Settings UI under the Advanced tab.

4. Smart Telegram OIDC Compatibility

Unlike standard OIDC providers, Telegram does not provide a standard userinfo_endpoint.

  • This plugin automatically detects if the provider lacks a userinfo_endpoint (like Telegram).
  • It smoothly falls back to extracting the user claims directly from the ID token, preventing the standard userinfo_endpoint must be configured on the issuer error.
  • Works out-of-the-box without requiring manual toggles.

side note: the telegram callback data is { id, phone_number }. to make this work with the exisitng phone field, you can bind phone_number to phone, and set phone as the user bind fields. If you want to send message to the user using bot, you must collect the callback's id into a user field (i.e. telegramId) and include the following as scope: 'openid profile phone telegram:bot_access'

Configuration

  1. Go to your NocoBase Admin Panel -> Authentication.
  2. Add or Edit the OIDC authenticator.
  3. In the settings form, you will find the new options for Custom query parameters, Overwrite checkboxes in the Field mapping tab, and a multi-select dropdown for Use this field to bind the user.