Skip to content

@egain/ai-agent-sdk API Reference - v0.1.1 / PKCEAuthConfig

Interface: PKCEAuthConfig

Configuration for PKCE authentication strategy

Table of contents

Properties

Properties

authorizationUrl

Optional authorizationUrl: string

Authorization server URL (authority)

Defined in

core/auth/PKCEAuthStrategy.ts:12


tokenUrl

Optional tokenUrl: string

Token endpoint URL (not used directly by MSAL, but kept for compatibility)

Defined in

core/auth/PKCEAuthStrategy.ts:17


clientId

clientId: string

Client ID

Defined in

core/auth/PKCEAuthStrategy.ts:22


redirectUri

redirectUri: string

Redirect URI for OAuth callback

Defined in

core/auth/PKCEAuthStrategy.ts:27


scopes

Optional scopes: string[]

Optional scopes to request

Defined in

core/auth/PKCEAuthStrategy.ts:32


authScheme

Optional authScheme: "popup" | "redirect"

Authentication scheme: 'popup' or 'redirect'

Default

ts
'redirect'

Defined in

core/auth/PKCEAuthStrategy.ts:38


cacheLocation

Optional cacheLocation: "localStorage" | "sessionStorage"

Cache location: 'localStorage' or 'sessionStorage'

Default

ts
'sessionStorage'

Defined in

core/auth/PKCEAuthStrategy.ts:44


knownAuthorities

knownAuthorities: string[]

Known authorities

Defined in

core/auth/PKCEAuthStrategy.ts:49


authorityMetadata

Optional authorityMetadata: string

Authority metadata

Defined in

core/auth/PKCEAuthStrategy.ts:54


nextRoute

Optional nextRoute: string

Next route to navigate to after authentication (used as state parameter)

Defined in

core/auth/PKCEAuthStrategy.ts:59


localLogin

Optional localLogin: boolean

When true, forces local account login instead of federated SSO.

Defined in

core/auth/PKCEAuthStrategy.ts:64

Released under the MIT License.