Stay organized with collections
Save and categorize content based on your preferences.
Blocking functions reference
This page describes the AdditionalUserInfo and AuthCredential interfaces
that are available when using Identity Platform
blocking functions.
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;}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page provides information on the \u003ccode\u003eAdditionalUserInfo\u003c/code\u003e and \u003ccode\u003eAuthCredential\u003c/code\u003e interfaces used with Identity Platform blocking functions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAdditionalUserInfo\u003c/code\u003e interface includes details like the provider ID, raw user profile, username, and whether the user is new.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAuthCredential\u003c/code\u003e interface contains user claims, optional OAuth tokens, and the provider ID.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAuthCredential\u003c/code\u003e interface provides various credentials like OAuth ID, access, refresh tokens, and their expiration time if they are available.\u003c/p\u003e\n"],["\u003cp\u003eMore information on supported OAuth credentials and data is available via the provided link.\u003c/p\u003e\n"]]],[],null,[]]