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 🙏

© 2024 – Pkg Stats / Ryan Hefner

netlify-plugin-auth0-patch-urls

v1.2.2

Published

A Netlify Build plugin that makes Auth0 works with deploy previews

Downloads

46

Readme

netlify-plugin-auth0-patch-urls

A Netlify Build plugin that makes Auth0 works with deploy previews

Motivation

Auth0 doesn't allow wildcard subdomains so things get rapidly complicated when using their SPA library while deploying previews on Netlify. This build plugin automates the Auth0 Application configuration update by leveraging the Auth0 management API. It basically adds the preview URLs of current Netlify build to the list of authorized URLs.

Prerequisites

  1. In order to get it to work properly, it is required to create a Management API token in the APIs section of your Auth0 account, and grant it the read:clients and update:clients permission.

  2. Then you need to create a dedicated Application ("achine to machine") and choose the previously created API in the APIs tab.

  3. Lastly, you have to declare the environment variables that will contain all the client ID and secrets required by this build plugin:

Env Variable | Description ------------ | -------------- AUTH0_DOMAIN | This is you Aut0 application domain AUTH0_CLIENT_ID | Client ID for the SPA Application AUTH0_MANAGEMENT_CLIENT_ID | Client ID of the Management Application AUTH0_MANAGEMENT_CLIENT_SECRET | Client Secret of the Management Application DEPLOY_URL | Specified by Netlify build DEPLOY_PRIME_URL | Specified by Netlify build

These variables have to be defined in your Netlify deployments settings

Important changes from 1.2.0

This plugin has been cluttering Auth0 apps by setting absolute URLs for logout, callbacks and CORS. Since 1.2.0, this has been removed in favor of the use of wildcard subdomains, which can be set in the Auth0 UI. See https://auth0.com/docs/applications/reference/wildcard-subdomains

Installation

Install locally (it seems to help with Netlify build time).

$ yarn add netlify-plugin-auth0-patch-urls

Add the plugin to the netlify.toml

[[plugins]]
  package = "netlify-plugin-auth0-patch-urls"