b2319ffe45
Add a `toError` utility function to `@backstage/errors` that converts unknown values to `ErrorLike` objects. If the value is already error-like it is returned as-is. Strings are used directly as the error message, and other values are stringified with a fallback to JSON.stringify to avoid unhelpful `[object Object]` messages. Non-error causes passed to `CustomErrorBase` are now converted and stored using `toError` rather than discarded. Existing `assertError` call sites across the codebase are migrated to `toError`. Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Made-with: Cursor
@backstage/plugin-auth
A Backstage frontend plugin that provides user interface components for authentication flows, specifically for OpenID Connect (OIDC) consent management.
Installation
This plugin is designed to work with the @backstage/plugin-auth-backend package that provides OIDC provider functionality.
# From your Backstage app directory
yarn --cwd packages/app add @backstage/plugin-auth
Usage
The plugin provides the route /oauth2/authorize/:sessionId for approving of oauth2 sessions for clients. You should see an approval flow for any sessions created through the auth-backend.