Journey client configuration with OIDC well-known endpoint discovery.

This configuration fetches the OIDC discovery document to obtain standard OIDC endpoints while still using baseUrl for AM-specific journey endpoints.

const config: AsyncJourneyClientConfig = {
serverConfig: {
baseUrl: 'https://am.example.com/am/',
wellknown: 'https://am.example.com/am/oauth2/realms/root/realms/alpha/.well-known/openid-configuration',
},
// realmPath is optional - can be inferred from the well-known issuer
};
interface AsyncJourneyClientConfig {
    middleware?: RequestMiddleware[];
    realmPath?: string;
    serverConfig: WellknownServerConfig;
}

Properties

middleware?: RequestMiddleware[]
realmPath?: string

Optional realm path - can be inferred from well-known issuer if not provided

serverConfig: WellknownServerConfig