Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / config / CreateOAuthOptions

Interface: CreateOAuthOptions

Defined in: packages/b2c-tooling-sdk/src/config/types.ts:418

Options for creating OAuth auth strategy.

Properties

allowedMethods?

optional allowedMethods: AuthMethod[]

Defined in: packages/b2c-tooling-sdk/src/config/types.ts:420

Allowed OAuth methods (default: client credentials, then PKCE user auth, then deprecated implicit auth)


openBrowser()?

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

Defined in: packages/b2c-tooling-sdk/src/config/types.ts:426

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/config/types.ts:424

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/config/types.ts:422

Additional OAuth scopes to request beyond those in config

Released under the Apache-2.0 License.