From b4787f22aa5d846201d140b3ba8779e3cf1f0a87 Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Wed, 13 Dec 2023 02:05:18 +0000 Subject: [PATCH] Fix test client not using refresh endpoint properly --- server/pages/flow-callback.go.html | 2 +- server/refresh.go | 2 +- test-client/index.html | 227 +++++++++++++++-------------- 3 files changed, 119 insertions(+), 112 deletions(-) diff --git a/server/pages/flow-callback.go.html b/server/pages/flow-callback.go.html index 88717c5..d114dd0 100644 --- a/server/pages/flow-callback.go.html +++ b/server/pages/flow-callback.go.html @@ -5,11 +5,11 @@ - + async function refreshAllTokens() { + let req = await fetch(ssoService + '/refresh', { + method: 'POST', + mode: 'cors', + cache: 'no-cache', + credentials: 'include', + headers: { + "Content-Type": "application/json", + }, + body: JSON.stringify({"token": currentTokens.refresh}), + }); + let reqJson = await req.json(); + updateTokenInfo(reqJson); + } + +
-

Test Client

+

Test Client

+
+ + +
+
- - +
+ +
+
+ +
-
-
-
- -
-
- -
-
-
-

Permissions:

-
    -
    +
    +

    Permissions:

    +
      +