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:49

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:53


clientId

clientId: string

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


clientSecret?

optional clientSecret: string

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


openBrowser()?

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

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

Custom browser opener for implicit OAuth flow. Receives the authorization URL.

Parameters

url

string

Returns

Promise<void>


redirectUri?

optional redirectUri: string

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

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


scopes?

optional scopes: string[]

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

Released under the Apache-2.0 License.