Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / auth / OAuthAuthConfig

Interface: OAuthAuthConfig

Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:65

Configuration for OAuth authentication. Used for OCAPI and platform API operations.

Properties

accountManagerHost?

optional accountManagerHost: string

Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:69


clientId

clientId: string

Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:66


clientSecret?

optional clientSecret: string

Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:67


openBrowser()?

optional openBrowser: (url) => Promise<void>

Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:73

Custom browser opener for browser OAuth flows. Receives the authorization URL.

Parameters

url

string

Returns

Promise<void>


redirectUri?

optional redirectUri: string

Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:71

Override redirect URI for browser OAuth flows (e.g., for port forwarding in remote environments)


scopes?

optional scopes: string[]

Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:68

Released under the Apache-2.0 License.