Installing the VCF SSO Authentication Frontend Plugin#
This guide will help you install and set up the VCF SSO authentication frontend plugin in your Backstage instance.
Prerequisites#
Before installing the frontend plugin, ensure you have:
- A working Backstage instance (version 1.46.1 or later) using the new frontend system
- The VCF SSO backend auth module installed and configured (
@terasky/backstage-plugin-vcfsso-auth-backend) - Access to modify your Backstage frontend package
Installation Steps#
1. Add the Package#
Install the package in your app package:
yarn --cwd packages/app add @terasky/backstage-plugin-vcfsso-auth
2. Auto-Discovery#
The plugin is automatically discovered by the new Backstage frontend system. No manual wiring in App.tsx is required. Once the package is installed in packages/app, Backstage will pick it up automatically.
3. Configure the Sign-In Page#
The most common way to add VCF SSO to the sign-in page is via the Global Sign-In Page module. Add the following to your app-config.yaml:
signinPage:
providers:
vcfsso:
enabled: true
title: VCF SSO
message: Sign in using your VCF SSO account
If you are using the Global Sign-In Page module (@terasky/backstage-plugin-app-module-global-signin-page), this is all that is needed on the frontend side. The VCF SSO provider is already included in that module.
4. Verify the Installation#
After restarting Backstage:
- Navigate to your Backstage instance's sign-in page
- Verify that the "VCF SSO" option appears
- Click the button and verify the VCF SSO authorization popup opens
Troubleshooting#
VCF SSO Provider Does Not Appear#
- Verify the package is listed in
packages/app/package.jsondependencies - Ensure
enabled: trueis set insigninPage.providers.vcfsso - Restart Backstage and clear your browser cache
- Check the browser console for configuration errors
Popup Opens But Authentication Fails#
- Verify the backend module is running and configured
- Check the callback URL configuration in the backend module
- Review Backstage backend logs for authentication errors
TypeScript Errors#
- Ensure you are using compatible Backstage versions
- Run
yarn installto update dependencies
Next Steps#
After installation, refer to: