From 9c073b90c787c3658ea9dcad0b2b6c29706abcea Mon Sep 17 00:00:00 2001 From: Filip Gralinski Date: Mon, 28 Jun 2021 18:34:43 +0200 Subject: [PATCH] Add function for showing the JWT token in the page for testing back-end --- static/test-gonito-as-backend.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/static/test-gonito-as-backend.html b/static/test-gonito-as-backend.html index a84d3f9..ecd3d9a 100644 --- a/static/test-gonito-as-backend.html +++ b/static/test-gonito-as-backend.html @@ -43,6 +43,10 @@ req.send(); }; + function showToken() { + alert(keycloak.token); + } + function testCors() { var createCORSRequest = function(method, url) { @@ -83,6 +87,8 @@

This is a simple web page to test Gonito as a backend with authorization by JWT tokens.

+

+