mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-11 12:19:04 +02:00
fix: only return minimal client metadata for public interaction endpoint
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user