Socket
Socket
Sign inDemoInstall

@snyk/error-catalog-nodejs-public

Package Overview
Dependencies
Maintainers
0
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snyk/error-catalog-nodejs-public - npm Package Compare versions

Comparing version 5.31.0 to 5.32.0

2

package.json
{
"name": "@snyk/error-catalog-nodejs-public",
"version": "5.31.0",
"version": "5.32.0",
"type": "commonjs",

@@ -5,0 +5,0 @@ "author": "snyk.io",

@@ -132,2 +132,3 @@ /*

UnsupportedEcosystem: string;
SsoReAuthRequired: string;
};

@@ -134,0 +135,0 @@ OpenSourceProjectSnapshots: {

@@ -134,2 +134,3 @@ /*

UnsupportedEcosystem: 'SNYK-OS-8003',
SsoReAuthRequired: 'SNYK-OS-8004',
},

@@ -136,0 +137,0 @@ OpenSourceProjectSnapshots: {

@@ -68,1 +68,24 @@ /*

}
/**
* @class
* @name SsoReAuthRequiredError
* @description Your code is cloned on an isolated environment using Git as it is required by Snyk to analyze its dependencies.
*
* Your Organization has enabled or enforced SAML SSO after you authorized Snyk to access your code, and a re-authentication is therefore required.
*
* The error you're seeing is usually reproducible by attempting to do a `git clone` of your repository with incorrectly configured credentials.
* Verify your authentication configuration with your Git cloud provider and try again.
*
* See more:
* - [https://docs.github.com/en/enterprise-cloud@latest/authentication/authenticating-with-saml-single-sign-on/about-authentication-with-saml-single-sign-on#about-oauth-apps-github-apps-and-saml-sso](https://docs.github.com/en/enterprise-cloud@latest/authentication/authenticating-with-saml-single-sign-on/about-authentication-with-saml-single-sign-on#about-oauth-apps-github-apps-and-saml-sso)
* @summary OAuth re-authorization required
* @category IsolatedBuilds
* @param {string} details the specific details that causes this error
* @param {Classification} classification the error classification determining if the error is user-actionable or not
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
* @param {Error} [cause] the `Error` type that caused this error to be thrown
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
*/
export declare class SsoReAuthRequiredError extends ProblemError {
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
}

@@ -18,3 +18,3 @@ /*

Object.defineProperty(exports, "__esModule", { value: true });
exports.UnsupportedEcosystemError = exports.BuildEnvironmentNotFoundError = exports.InvalidRequestError = void 0;
exports.SsoReAuthRequiredError = exports.UnsupportedEcosystemError = exports.BuildEnvironmentNotFoundError = exports.InvalidRequestError = void 0;
const types_1 = require("../types");

@@ -113,2 +113,39 @@ const problem_error_1 = require("../problem-error");

exports.UnsupportedEcosystemError = UnsupportedEcosystemError;
/**
* @class
* @name SsoReAuthRequiredError
* @description Your code is cloned on an isolated environment using Git as it is required by Snyk to analyze its dependencies.
*
* Your Organization has enabled or enforced SAML SSO after you authorized Snyk to access your code, and a re-authentication is therefore required.
*
* The error you're seeing is usually reproducible by attempting to do a `git clone` of your repository with incorrectly configured credentials.
* Verify your authentication configuration with your Git cloud provider and try again.
*
* See more:
* - [https://docs.github.com/en/enterprise-cloud@latest/authentication/authenticating-with-saml-single-sign-on/about-authentication-with-saml-single-sign-on#about-oauth-apps-github-apps-and-saml-sso](https://docs.github.com/en/enterprise-cloud@latest/authentication/authenticating-with-saml-single-sign-on/about-authentication-with-saml-single-sign-on#about-oauth-apps-github-apps-and-saml-sso)
* @summary OAuth re-authorization required
* @category IsolatedBuilds
* @param {string} details the specific details that causes this error
* @param {Classification} classification the error classification determining if the error is user-actionable or not
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
* @param {Error} [cause] the `Error` type that caused this error to be thrown
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
*/
class SsoReAuthRequiredError extends problem_error_1.ProblemError {
constructor(details, additionalData, cause, instance, logs) {
super({
title: 'OAuth re-authorization required',
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-8004',
status: 422,
errorCode: 'SNYK-OS-8004',
level: 'error',
classification: types_1.Classification.ACTIONABLE,
instance,
}, details, Object.assign({ links: [
'https://docs.github.com/en/enterprise-cloud@latest/authentication/authenticating-with-saml-single-sign-on/about-authentication-with-saml-single-sign-on#about-oauth-apps-github-apps-and-saml-sso',
] }, additionalData), cause, logs);
this.name = this.constructor.name;
}
}
exports.SsoReAuthRequiredError = SsoReAuthRequiredError;
//# sourceMappingURL=IsolatedBuilds-error-catalog.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc