InteractionRequiredAuthError class

Errore generato quando è necessaria l'interazione dell'utente.

Extends

Proprietà

claims

https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/v4-lts/lib/msal-common/docs/claims-challenge.md

Stringa con attestazioni aggiuntive necessarie per il successo della richiesta di token: reindirizzare l'utente alla pagina di autorizzazione e impostare l'API Web delle attestazioni aggiuntive: includere le attestazioni nell'intestazione WWW-Authenticate che vengono inviate al client in modo che sappia richiedere un token con l'applicazione desktop aggiuntiva attestazioni o il contesto del browser: includere le attestazioni durante l'acquisizione interattiva dell'app nel contesto dell'app (client_credentials): includere le attestazioni nella richiesta AcquireTokenByClientCredential

errorNo

Numero di errore del server;

timestamp

Ora in cui si è verificato l'errore

traceId

TraceId associato all'errore

Proprietà ereditate

correlationId

CorrelationId associato all'errore

errorCode

Errore di denoting stringa breve

errorMessage

Descrizione dettagliata dell'errore

message
name
platformBrokerError

PlatformBrokerError predefinito da MsalNodeRuntime quando broker è abilitato

stack
stackTraceLimit

La Error.stackTraceLimit proprietà specifica il numero di frame di stack raccolti da una traccia di stack (che sia generata da new Error().stack o Error.captureStackTrace(obj)).

Il valore predefinito è 10 ma può essere impostato a qualsiasi numero JavaScript valido. Le modifiche influenzeranno qualsiasi traccia dello stack catturata dopo che il valore è stato modificato.

Se impostato a un valore non numerico, o a un numero negativo, le traccia dello stack non cattureranno alcun fotogramma.

subError

Descrive la sottoclasse di un errore

Metodi ereditati

captureStackTrace(object, Function)

Crea una .stack proprietà su targetObject, che quando accedita restituisce una stringa che rappresenta la posizione nel codice a cui Error.captureStackTrace() è stato chiamato.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack;  // Similar to `new Error().stack`

La prima riga della traccia sarà preceduta da ${myObject.name}: ${myObject.message}.

L'argomento opzionale constructorOpt accetta una funzione. Se dato, tutti i frame sopra constructorOpt, incluso constructorOpt, verranno omessi dalla traccia dello stack generata.

L'argomento constructorOpt è utile per nascondere i dettagli dell'implementazione della generazione degli errori all'utente. Per esempio:

function a() {
  b();
}

function b() {
  c();
}

function c() {
  // Create an error without stack trace to avoid calculating the stack trace twice.
  const { stackTraceLimit } = Error;
  Error.stackTraceLimit = 0;
  const error = new Error();
  Error.stackTraceLimit = stackTraceLimit;

  // Capture the stack trace above function b
  Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
  throw error;
}

a();
prepareStackTrace(Error, CallSite[])

Fare riferimento a https://v8.dev/docs/stack-trace-api#customizing-stack-traces

setCorrelationId(string)

Dettagli costruttore

InteractionRequiredAuthError(string, string, string, string, string, string, string, string)

new InteractionRequiredAuthError(errorCode?: string, errorMessage?: string, subError?: string, timestamp?: string, traceId?: string, correlationId?: string, claims?: string, errorNo?: string)

Parametri

errorCode

string

errorMessage

string

subError

string

timestamp

string

traceId

string

correlationId

string

claims

string

errorNo

string

Dettagli proprietà

claims

https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/v4-lts/lib/msal-common/docs/claims-challenge.md

Stringa con attestazioni aggiuntive necessarie per il successo della richiesta di token: reindirizzare l'utente alla pagina di autorizzazione e impostare l'API Web delle attestazioni aggiuntive: includere le attestazioni nell'intestazione WWW-Authenticate che vengono inviate al client in modo che sappia richiedere un token con l'applicazione desktop aggiuntiva attestazioni o il contesto del browser: includere le attestazioni durante l'acquisizione interattiva dell'app nel contesto dell'app (client_credentials): includere le attestazioni nella richiesta AcquireTokenByClientCredential

claims: string

Valore della proprietà

string

errorNo

Numero di errore del server;

errorNo?: string

Valore della proprietà

string

timestamp

Ora in cui si è verificato l'errore

timestamp: string

Valore della proprietà

string

traceId

TraceId associato all'errore

traceId: string

Valore della proprietà

string

Dettagli proprietà ereditate

correlationId

CorrelationId associato all'errore

correlationId: string

Valore della proprietà

string

Ereditato daAuthError.correlationId

errorCode

Errore di denoting stringa breve

errorCode: string

Valore della proprietà

string

Ereditato daAuthError.errorCode

errorMessage

Descrizione dettagliata dell'errore

errorMessage: string

Valore della proprietà

string

Ereditato daAuthError.errorMessage

message

message: string

Valore della proprietà

string

Ereditato daAuthError.message

name

name: string

Valore della proprietà

string

Ereditato daAuthError.name

platformBrokerError

PlatformBrokerError predefinito da MsalNodeRuntime quando broker è abilitato

platformBrokerError?: PlatformBrokerError

Valore della proprietà

Ereditato daAuthError.platformBrokerError

stack

stack?: string

Valore della proprietà

string

Ereditato daAuthError.stack

stackTraceLimit

La Error.stackTraceLimit proprietà specifica il numero di frame di stack raccolti da una traccia di stack (che sia generata da new Error().stack o Error.captureStackTrace(obj)).

Il valore predefinito è 10 ma può essere impostato a qualsiasi numero JavaScript valido. Le modifiche influenzeranno qualsiasi traccia dello stack catturata dopo che il valore è stato modificato.

Se impostato a un valore non numerico, o a un numero negativo, le traccia dello stack non cattureranno alcun fotogramma.

static stackTraceLimit: number

Valore della proprietà

number

Ereditato daAuthError.stackTraceLimit

subError

Descrive la sottoclasse di un errore

subError: string

Valore della proprietà

string

Ereditato daAuthError.subError

Dettagli dei metodi ereditati

captureStackTrace(object, Function)

Crea una .stack proprietà su targetObject, che quando accedita restituisce una stringa che rappresenta la posizione nel codice a cui Error.captureStackTrace() è stato chiamato.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack;  // Similar to `new Error().stack`

La prima riga della traccia sarà preceduta da ${myObject.name}: ${myObject.message}.

L'argomento opzionale constructorOpt accetta una funzione. Se dato, tutti i frame sopra constructorOpt, incluso constructorOpt, verranno omessi dalla traccia dello stack generata.

L'argomento constructorOpt è utile per nascondere i dettagli dell'implementazione della generazione degli errori all'utente. Per esempio:

function a() {
  b();
}

function b() {
  c();
}

function c() {
  // Create an error without stack trace to avoid calculating the stack trace twice.
  const { stackTraceLimit } = Error;
  Error.stackTraceLimit = 0;
  const error = new Error();
  Error.stackTraceLimit = stackTraceLimit;

  // Capture the stack trace above function b
  Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
  throw error;
}

a();
static function captureStackTrace(targetObject: object, constructorOpt?: Function)

Parametri

targetObject

object

constructorOpt

Function

Ereditato daAuthError.captureStackTrace

prepareStackTrace(Error, CallSite[])

Fare riferimento a https://v8.dev/docs/stack-trace-api#customizing-stack-traces

static function prepareStackTrace(err: Error, stackTraces: CallSite[]): any

Parametri

err

Error

stackTraces

CallSite[]

Valori restituiti

any

Ereditato daAuthError.prepareStackTrace

setCorrelationId(string)

function setCorrelationId(correlationId: string)

Parametri

correlationId

string

Ereditato daAuthError.setCorrelationId