Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@rhcp/sso-node-client

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rhcp/sso-node-client

Simple sso client with oidc connect

latest
npmnpm
Version
0.1.3
Version published
Maintainers
3
Created
Source

Red Hat SSO NodeJS Client

Simple client for getting SSO access token to use with API's such as GraphQL

Getting started

import SSOClient from "@rhcp/sso-node-client";

const client = new SSOClient({
    url: process.env.URL,
    realm: process.env.REALM,
    scopes: [process.env.SCOPE],
    clientId: process.env.CLIENT_ID,
    clientSecret: process.env.CLIENT_SECRET,
  });

const token = await client.refreshToken();

// Use token to in Authorization header to GraphQL

FAQs

Package last updated on 03 May 2023

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