@salesforce/b2c-tooling-sdk / auth / OAuthAuthConfig
Interface: OAuthAuthConfig
Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:115
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:119
clientAuthMethod?
optionalclientAuthMethod:ClientAuthMethod
Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:121
How client credentials are sent to Account Manager
clientId
clientId:
string
Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:116
clientSecret?
optionalclientSecret:string
Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:117
jwtCertPath?
optionaljwtCertPath:string
Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:123
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:125
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:127
Optional passphrase for an encrypted JWT private key
openBrowser()?
optionalopenBrowser: (url,login?) =>Promise<void>
Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:131
Custom browser opener for browser OAuth flows. Receives the authorization URL and, for PKCE logins, a handle to the pending login.
Parameters
url
string
login?
Returns
Promise<void>
redirectUri?
optionalredirectUri:string
Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:129
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:118