New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@backstage/plugin-auth-backend-module-guest-provider

Package Overview
Dependencies
Maintainers
0
Versions
379
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@backstage/plugin-auth-backend-module-guest-provider

The guest-provider backend module for the auth plugin.

  • 0.2.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Auth Module: Guest Provider

This module provides a guest auth provider implementation for @backstage/plugin-auth-backend. This is meant to supersede the existing 'guest' option for authentication that does not emit tokens and is completely stored as frontend state.

Installation

First add the package itself to your backend dependencies:

# From your Backstage root directory
yarn --cwd packages/backend add @backstage/plugin-auth-backend-module-guest-provider

Then import it into your backend

// In packages/backend/src/index.ts
const backend = createBackend();
backend.add(import('@backstage/plugin-auth-backend-module-guest-provider'));

[!TIP] If you happen to have enabled automatic feature discovery (which is very uncommon at the time of writing), you do not need to perform this step.

And finally make sure to enable it in your config:

# In app-config.yaml - NOT app-config.production.yaml
auth:
  providers:
    guest: {}

Notice the double curly braces, which correspond to an empty object. This sets everything up using the default settings, which are:

  • The user is signed in as a user with the ref user:development/guest
  • The user only claims ownership through that ref
  • The sign in will only work in development mode; if you try to enable it in production it will refuse to sign you in for security reasons.

See the config schema for details about the available options. If you add options to your app-config file under the guest key, remember to remove the double curly braces as well.

FAQs

Package last updated on 18 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc