From 82b4d3caa7e21989a3496f5ba2d385f013c0e5e8 Mon Sep 17 00:00:00 2001 From: rohanharikr Date: Thu, 4 Jul 2024 19:18:05 +0100 Subject: [PATCH] update layout of authorize response section --- src/App.svelte | 566 +++++++++++++++++++++++++------------------------ 1 file changed, 284 insertions(+), 282 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index d0b2dda..b416897 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1404,313 +1404,315 @@ {/if} - {#if result.authorize} -
- + + + + + + + + {#if dropdown.authorize} +

+ {result.authorize} +

+ {/if} +
+ + {#if result.token !== null} +
+ + - - - - - - - - {#if dropdown.authorize} -

- {result.authorize} -

- {/if} -
- - {#if result.token !== null} -
-
+ {/if} + + {#if result.userinfo !== null} +
+ - - - - - - - {#if dropdown.token} - - - {JSON.stringify(result.token, null, 2)} - - +
+ Response + +
+ + + + + + {#if dropdown.userinfo} + + + {JSON.stringify(result.userinfo, null, 2)} + + + {/if} +
{/if} - - {/if} - - {#if result.userinfo !== null} -
- - - - - - - - {#if dropdown.userinfo} - - - {JSON.stringify(result.userinfo, null, 2)} - - +
+ Response + +
+ + + + + + {#if dropdown.introspect} + + + {JSON.stringify(result.introspect, null, 2)} + + + {/if} +
{/if} - - {/if} - - {#if result.introspect !== null} -
- - - - - - - - {#if dropdown.introspect} - - - {JSON.stringify(result.introspect, null, 2)} - - - {/if} -
- {/if} - - {#if result.introspect} -
- - {#if dropdown.claims} - + + + + {#if dropdown.claims} +
    + {#each scopes.claims.filter((i) => result.introspect[i]) as claim} + {@const isString = typeof result.introspect[claim] == 'string'} +
  • +
    {claim}
    +
    + {#if claim === "picture" && result.introspect[claim]} + + Picture claim + {:else} + +
    {isString ? result.introspect[claim] : JSON.stringify(result.introspect[claim], null, 2) || ""}
    + {/if} +
    +
  • + {/each} +
+ {/if} +
{/if} - + {/if} - {:else} -
- Authorization Response - Nothing to see here yet -
- {/if} +