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

salt-strapi-plugin-sso

v1.5.5

Published

Azure AD SSO plugin for Strapi 5 with user access control

Readme

strapi-plugin-salt-sso

Azure AD Single Sign-On plugin for Strapi 5

Features

  • ✅ Azure AD OAuth 2.0 authentication
  • ✅ Customizable redirect URLs
  • ✅ Multi-locale support
  • ✅ Built for Strapi 5.x
  • ✅ Configurable UI for enable disable azure
  • ✅ Security feature only login with azure when already register on strapi

Installation

yarn add strapi-plugin-salt-sso
# or
npm install strapi-plugin-salt-sso

Configuration

Add the following to your .env file:

# Azure AD Configuration
AZUREAD_TENANT_ID=your-tenant-id
AZUREAD_OAUTH_CLIENT_ID=your-client-id
AZUREAD_OAUTH_CLIENT_SECRET=your-client-secret
AZUREAD_OAUTH_REDIRECT_URI=http://localhost:1337/admin/auth/azure/callback

# Optional: Azure AD scope (default: User.Read)
AZUREAD_SCOPE=User.Read

Plugin config (config/plugins.ts)

You can also configure the plugin directly in config/plugins.ts for options not available via environment variables:

export default ({ env }) => ({
  'strapi-plugin-sso': {
    enabled: true,
    config: {
      tenantId: env('AZUREAD_TENANT_ID'),
      clientId: env('AZUREAD_OAUTH_CLIENT_ID'),
      clientSecret: env('AZUREAD_OAUTH_CLIENT_SECRET'),
      redirectUri: env('AZUREAD_OAUTH_REDIRECT_URI'),
      scope: env('AZUREAD_SCOPE', 'User.Read'),
      // Optional: custom logo shown on SSO error pages
      errorPageLogoUrl: '/uploads/my-company-logo.png',
    },
  },
});

| Option | Type | Default | Description | |--------|------|---------|-------------| | tenantId | string | '' | Azure AD tenant ID | | clientId | string | '' | Azure AD application (client) ID | | clientSecret | string | '' | Azure AD client secret | | redirectUri | string | http://localhost:1337/strapi-plugin-sso/azuread/callback | OAuth callback URL | | postLogoutRedirectUri | string | http://localhost:1337/admin/auth/login | Redirect URL after logout | | scope | string | 'User.Read' | OAuth scope | | errorPageLogoUrl | string \| null | null | URL of the logo shown on SSO error pages. Falls back to emoji if not set. Accepts relative paths (e.g. /uploads/logo.png) or absolute URLs. |

Get Azure AD Credentials

  1. Go to Azure Portal
  2. Navigate to Azure Active DirectoryApp registrations
  3. Click New registration
  4. Enter application name and select account type
  5. Configure redirect URI: http://localhost:1337/admin/auth/azure/callback
  6. Copy Application (client) ID
  7. Go to Certificates & secretsNew client secret
  8. Copy the secret value
  9. Copy Directory (tenant) ID

Usage

  1. After installation, the plugin will add a SSO button on the login page
  2. Click the button to authenticate with Azure AD
  3. On first login, a user will be created automatically
  4. The user will be assigned to the authenticated role

Advanced Configuration

Custom Role Assignment

Create a custom service to assign roles based on Azure AD groups:

// src/extensions/users-permissions/strapi-server.ts
export default ({ strapi }) => {
  // Custom role assignment logic
};

Custom User Mapping

Modify the user creation logic in the plugin's service:

// server/src/services/azure.ts
const createUserFromAzure = async (profile) => {
  // Custom user creation logic
};

alt text

Development

# Install dependencies
yarn install

# Watch for changes
yarn watch

# Link to local Strapi project
yarn watch:link

# Build for production
yarn build

# Verify plugin
yarn verify

License

MIT

Support

For issues and questions, please open an issue on GitHub.