fix: only return minimal client metadata for public interaction endpoint

This commit is contained in:
Elias Schneider
2026-10-09 22:59:32 +02:00
parent a58ccea6ce
commit 03fc844d05
3 changed files with 23 additions and 10 deletions
+6 -1
View File
@@ -137,11 +137,16 @@ export type InteractionScopeInfo = {
description?: string;
};
export type InteractionClient = Pick<
OidcClientMetaData,
'id' | 'name' | 'hasLogo' | 'hasDarkLogo' | 'clientType'
>;
export type InteractionSession = {
id: string;
scopes: string[];
scopeInfo: InteractionScopeInfo[];
client: OidcClientMetaData;
client: InteractionClient;
currentStep?: InteractionStep;
requiredSteps: InteractionStep[];
};
@@ -5,7 +5,7 @@
import CrossAnimated from '#lib/icons/cross-animated.svelte';
import { m } from '#lib/paraglide/messages.js';
import appConfigStore from '#lib/stores/application-configuration-store.ts';
import type { OidcClientMetaData } from '#lib/types/oidc.type.ts';
import type { InteractionClient } from '#lib/types/oidc.type.ts';
import { cachedOidcClientLogo } from '#lib/utils/cached-image-util.ts';
import { mode } from 'mode-watcher';
import { untrack } from 'svelte';
@@ -21,7 +21,7 @@
}: {
success?: boolean;
error?: boolean;
client?: OidcClientMetaData;
client?: InteractionClient;
} = $props();
// Each tile travels this far so they meet in the middle