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

@veecode-platform/backstage-plugin-ldap-auth

v1.0.0

Published

Backstage LDAP Authentication plugin, this packages adds frontend login page and token management (fork from @immobiliarelabs original plugin)

Readme

@veecode-platform/backstage-plugin-ldap-auth

LDAP Authentication frontend for Backstage

This package provides a custom LDAP login page and client-side token management for your Backstage instance.

About This Plugin

This is a maintained fork of the original @immobiliarelabs/backstage-plugin-ldap-auth, updated and adapted for:

  • Latest Backstage releases (v1.45+)
  • Material-UI v5 (migrated from v4)
  • Modern React patterns (hooks, functional components)
  • TypeScript 5.x support

Credits

Original plugin created by the amazing team at ImmobiliareLabs. We are grateful for their work and maintain this fork to ensure compatibility with the latest Backstage releases.

📚 Original Plugin Documentation

Features

  • Custom Login Page: Material-UI based LDAP authentication form
  • Token Management: Automatic token refresh and session handling
  • Customizable UI: Pass children components to customize the look and feel
  • Password Validation: Built-in username and password validation
  • Session Persistence: Cookie-based session storage

Prerequisites

This plugin works in conjunction with:

Table of Contents

Installation

Install both frontend and backend plugins:

# Frontend plugin
yarn workspace app add @veecode-platform/backstage-plugin-ldap-auth

# Backend plugin  
yarn workspace backend add @veecode-platform/backstage-plugin-ldap-auth-backend

Configuration

Basic Setup

Replace Backstage's default sign-in page with the LDAP login page in your app.

packages/app/src/App.tsx

import { LdapAuthFrontendPage } from '@veecode-platform/backstage-plugin-ldap-auth';
import { createApp } from '@backstage/app-defaults';

const app = createApp({
  // ... other config
  components: {
    SignInPage: (props) => (
      <LdapAuthFrontendPage
        {...props}
        provider="ldap"
      />
    ),
  },
  // ... other config
});

Note: This component handles both UI and authentication logic, including token management and API calls to the backend authentication routes.

Customization Options

You can customize the login form with validation rules and helper text:

const app = createApp({
  components: {
    SignInPage: (props) => (
      <LdapAuthFrontendPage
        {...props}
        provider="ldap"
        options={{
          // Custom labels
          usernameLabel: 'Employee ID',
          
          // Helper text
          helperTextUsername: "Enter your LDAP username (e.g., 'jsmith')",
          helperTextPassword: 'Enter your LDAP password',
          
          // Custom validation
          validateUsername: (username) => username.length >= 3,
          validatePassword: (password) => password.length >= 8,
        }}
      />
    ),
  },
});

Available Options:

| Option | Type | Description | Default | |--------|------|-------------|---------| | usernameLabel | string | Label for username field | 'LDAP Name' | | helperTextUsername | string | Helper text below username field | undefined | | helperTextPassword | string | Helper text below password field | undefined | | validateUsername | (usr: string) => boolean | Custom username validation | Min 4 chars, max 40, no spaces | | validatePassword | (pwd: string) => boolean | Custom password validation | Min 4 chars, no spaces |

Custom Children

The login page accepts children components to customize the UI (e.g., logos, banners, footer):

const app = createApp({
  components: {
    SignInPage: (props) => (
      <LdapAuthFrontendPage {...props} provider="ldap">
        <div style={{ textAlign: 'center', marginBottom: 24 }}>
          <img src="/your-logo.png" alt="Logo" width={200} />
          <h2>Welcome to Our Portal</h2>
          <p>Please sign in with your LDAP credentials</p>
        </div>
      </LdapAuthFrontendPage>
    ),
  },
});

Backend Configuration

Make sure to configure the backend plugin. See the backend plugin documentation for details.

Migration from Original Plugin

If you're migrating from @immobiliarelabs/backstage-plugin-ldap-auth:

  1. Update package name in package.json:

    - "@immobiliarelabs/backstage-plugin-ldap-auth": "^4.3.1"
    + "@veecode-platform/backstage-plugin-ldap-auth": "workspace:*"
  2. Update imports in App.tsx:

    - import { LdapAuthFrontendPage } from '@immobiliarelabs/backstage-plugin-ldap-auth';
    + import { LdapAuthFrontendPage } from '@veecode-platform/backstage-plugin-ldap-auth';
  3. Material-UI v5: This fork uses MUI v5, which is already the standard in latest Backstage releases

  4. API remains the same - no code changes needed beyond import updates

Support & Contributing

This is a community-maintained fork. For issues or questions:

Thanks

Original plugin created with ❤️ by the ImmobiliareLabs team.

Maintained and updated by VeeCode Platform.


License

MIT License - see LICENSE for details.

Original work Copyright (c) ImmobiliareLabs
Modified work Copyright (c) VeeCode Platform