@salesforce/b2c-tooling-sdk / auth / OAuthAuthConfig
Interface: OAuthAuthConfig
Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:105
Configuration for OAuth authentication. Used for OCAPI and platform API operations.
Properties
accountManagerHost?
optionalaccountManagerHost:string
Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:109
clientId
clientId:
string
Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:106
clientSecret?
optionalclientSecret:string
Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:107
jwtCertPath?
optionaljwtCertPath:string
Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:111
Path to JWT certificate file (cert.pem) for the JWT Bearer flow
jwtKeyPath?
optionaljwtKeyPath:string
Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:113
Path to JWT private key file (key.pem) for the JWT Bearer flow
jwtPassphrase?
optionaljwtPassphrase:string
Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:115
Optional passphrase for an encrypted JWT private key
openBrowser()?
optionalopenBrowser: (url) =>Promise<void>
Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:119
Custom browser opener for browser OAuth flows. Receives the authorization URL.
Parameters
url
string
Returns
Promise<void>
redirectUri?
optionalredirectUri:string
Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:117
Override redirect URI for browser OAuth flows (e.g., for port forwarding in remote environments)
scopes?
optionalscopes:string[]
Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:108