New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@adityasinghal26/daytona-web

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adityasinghal26/daytona-web

_This package was created through the Backstage CLI_.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
0
Created
Source

@adityasinghal26/daytona-web

This package was created through the Backstage CLI.

Description

The plugin provides the frontend components required for Daytona Authentication (daytonaApiFactory) and Sign-In (daytonaSignInProvider). These components will ease the implementation for Daytona authentication using OAuth in Backstage.

Installation

Install the package via Yarn in your Backstage root directory:

# From your Backstage root directory
yarn --cwd packages/app add @adityasinghal26/daytona-web

Authentication Setup

Backstage requires ApiFactory to interact with Daytona OAuth library and a sign-in provider. Follow the below steps:

  • In Backstage folder packages/app/src, add the below snippet in apis.ts file.

    // In packages/app/src/apis.ts
    import { daytonaApiFactory } from '@adityasinghal26/daytona-web';
    
    // Add the Daytona ApiFactory to the list of available APIs
    export const apis: AnyApiFactory[] = [
        {/* other ApiFactory here */}
        daytonaApiFactory
    ];
    
  • Add the following to Backstage App.tsx file.

    
    // In packages/app/src/App.tsx
    import { daytonaSignInProvider } from '@adityasinghal26/daytona-web';
    
    // Add the Daytona Sign-In Provider to the available sign-in providers
    const app = createApp({
        {/* other api, bind routes here */}
        components: {
            SignInPage: props => <SignInPage {...props} auto providers={['guest',daytonaSignInProvider]} />,
        },
    });
    

Keywords

backstage

FAQs

Package last updated on 22 Jul 2024

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