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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@theia-extension-tester/openshift-authenticator

v0.1.2

Published

Authenticate users into Eclipse Che instances installed from OperatorHub. Used as part of theia-extension-tester.

Downloads

4

Readme

openshift-authenticator

Authenticator object is used when Eclipse Che requires an user to log in. Every authenticator objects has access to Selenium WebDriver. This package supports only Eclipse Che instances installed from OperatorHub.

Usage

Install via npm

npm install @theia-extension-tester/openshift-authenticator

Install via yarn

yarn add @theia-extension-tester/openshift-authenticator

Create new instance of OpenShift authenticator object.

import { OpenShiftAuthenticator } from "@theia-extension-tester/openshift-authenticator";

const auth = new OpenShiftAuthenticator({
    // Form data array in format (input name, input value).
    inputData: [
        {
            // Input field name. Leave unchanged.
            name: "username",
            // Eclipse Che user name.
            //Recommended to store in .env file.
            value: process.env.CHE_USERNAME
        },
        {
            // Input field name. Leave unchanged.
            name: "password",
            // Eclipse Che user password.
            // Recommended to store in .env file.
            value: process.env.CHE_PASSWORD
        },
        // ... and other values if needed
    ],
    // Depends if form is split into multiple forms.
    // Leave false if single form is used. 
    multiStepForm: false,
    // Login method button text.
    // Might have multiple variants (e.g. my_htpasswd_provider)
    loginMethod: "DevSandbox"
});

After that it is possible to start authentication process.

await auth.authenticate();

Starter package configuration

Configuration changes based on which login method is used and what input fields must be filled in to. If theiatest test utility from the starter package is used then in the project root create an .env file containing:

# Log in username
CHE_USERNAME=

# Log in password
CHE_PASSWORD=

# In case of form is not multi step by default
CHE_MULTI_STEP_FORM=0

# If login method button text is different than default one ("DevSandbox")
CHE_LOGIN_METHOD=my_htpasswd_provider