Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Riferimento per le funzioni di blocco
Questa pagina descrive le interfacce AdditionalUserInfo e AuthCredential
che sono disponibili quando si utilizzano le funzioni di blocco di Identity Platform.
AdditionalUserInfo
interfaceAdditionalUserInfo{// The provider ID, such as saml.provider, oidc.provider, google.com,// facebook.com, etc.providerId:string;// Raw user info. This is the raw user info also returned in client SDK.profile?:any;// This is the Twitter screen_name.username?:string;// Whether the user is new or existing.// This is true for beforeCreate, false for others.isNewUser:boolean;}
interfaceAuthCredential{// All user SAML or OIDC claims. These are in plain object format but should// be verified and parsed from SAML response, IdP ID token, etc.// This is empty for all other providers.claims?:{[key:string]:any};// Optional OAuth ID token if available and enabled in the project config.idToken?:string;// Optional OAuth access token if available and enabled in the project config.accessToken?:string;// Optional OAuth refresh token if available and enabled in the project config.refreshToken?:string;// Optional OAuth expiration if available and enabled in the project config.expirationTime?:string;// Optional OAuth token secret if available and enabled in the project config.secret?:string;// eg. saml.provider, oidc.provider, google.com, facebook.com, etc.providerId:string;}
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-04-09 UTC."],[[["This page provides information on the `AdditionalUserInfo` and `AuthCredential` interfaces used with Identity Platform blocking functions."],["The `AdditionalUserInfo` interface includes details like the provider ID, raw user profile, username, and whether the user is new."],["The `AuthCredential` interface contains user claims, optional OAuth tokens, and the provider ID."],["The `AuthCredential` interface provides various credentials like OAuth ID, access, refresh tokens, and their expiration time if they are available."],["More information on supported OAuth credentials and data is available via the provided link."]]],[]]