From 1909d5160b4a923472e460454aeb972b0903fa11 Mon Sep 17 00:00:00 2001 From: Alexander Kehr Date: Thu, 23 Feb 2023 21:28:51 +0100 Subject: [PATCH] force P_TAN and fix url for oauth token --- low-level.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/low-level.js b/low-level.js index 9b293b2..c90f4ba 100644 --- a/low-level.js +++ b/low-level.js @@ -113,6 +113,7 @@ async function validateSesssionTAN(sessionUUID) { 'Accept': 'application/json', 'Authorization': 'AUTO-INJECT', 'x-http-request-info': 'AUTO-INJECTED', + 'x-once-authentication-info': '{"typ":"P_TAN"}', 'Content-Type': 'application/json' }, body: JSON.stringify({ @@ -154,7 +155,7 @@ async function oAuthSecondaryFlow() { const options = { responseType: 'json', 'method': 'POST', - 'url': '/oauth/token', + 'url': 'oauth/token', 'headers': { 'Content-Type': 'application/x-www-form-urlencoded', 'Accept': 'application/json'