From db0d2bf7eb5ecef3fdaff6686d08ef729979d00d Mon Sep 17 00:00:00 2001 From: Pelayo Torres Date: Wed, 13 Nov 2024 12:08:49 +0100 Subject: [PATCH 1/2] Fix hello_api --- doc/testing/postman/hello_api.py | 7 +------ doc/testing/postman/requirements.txt | 3 +-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/doc/testing/postman/hello_api.py b/doc/testing/postman/hello_api.py index 0b2a359..9bc8257 100644 --- a/doc/testing/postman/hello_api.py +++ b/doc/testing/postman/hello_api.py @@ -1,12 +1,7 @@ from flask import Flask, jsonify, request -from flask_jwt_extended import jwt_required, JWTManager, get_jwt_identity, get_jwt -import ssl +from flask_jwt_extended import jwt_required, JWTManager from werkzeug import serving -import socket, ssl -import OpenSSL from OpenSSL import crypto -import jwt -import pyone app = Flask(__name__) diff --git a/doc/testing/postman/requirements.txt b/doc/testing/postman/requirements.txt index a6e4396..0022a8f 100644 --- a/doc/testing/postman/requirements.txt +++ b/doc/testing/postman/requirements.txt @@ -1,4 +1,3 @@ Flask == 3.0.3 flask_jwt_extended == 4.6.0 -pyopenssl == 24.1.0 -pyone \ No newline at end of file +pyopenssl == 24.1.0 \ No newline at end of file -- GitLab From 3aeef47ddf062e90a056964e790bd98c99ec1bc5 Mon Sep 17 00:00:00 2001 From: Pelayo Torres Date: Wed, 13 Nov 2024 12:13:58 +0100 Subject: [PATCH 2/2] Fix refresh admin token --- .../postman/CAPIF.postman_collection.json | 2 +- doc/testing/postman/Postman-Test.zip | Bin 12598 -> 12561 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/testing/postman/CAPIF.postman_collection.json b/doc/testing/postman/CAPIF.postman_collection.json index eab0e7b..606a4a0 100644 --- a/doc/testing/postman/CAPIF.postman_collection.json +++ b/doc/testing/postman/CAPIF.postman_collection.json @@ -979,7 +979,7 @@ "exec": [ "var res = JSON.parse(responseBody);", "", - "pm.environment.set('REFRESH_TOKEN', res.refresh_token);" + "pm.environment.set('ADMIN_TOKEN', res.access_token);" ], "type": "text/javascript", "packages": {} diff --git a/doc/testing/postman/Postman-Test.zip b/doc/testing/postman/Postman-Test.zip index 0f3d09d0d19e6156e03c59d4d07fa9c03aaa51b5..321d95cf5295f26cc7f0fbfb9ff35036e4b7742d 100644 GIT binary patch delta 2068 zcmaJ?2{ha37XK5%BvPtKsU{RrlL~5SG0|sk#t=L*7?}XeEOmCFHd7LAMvdN1uwCc5|AtfE}M`QCyOTTs% z!Xpmwu9+zuj-f-!^k`~}Y;u5FHvjvTMIGHqr^i-a+zDRnY+WRhY=e0NmvnTK9k7Ar zP%rA$ucy6wt~;@xYJE~p8NK4#gM0Yrdeez?y@y0r8T1km|J_a1AT(Es|si9@Uv**!A^wchnXzwBP4w zZGgHYj~ru-)*iKPgN)o=DE~^n@sK9*-Z;LGVb(qS;C#sWhyBSKpCp7IkXm z*`qmwRn^PsUR*DD-$#mc6q<_BTfHL7^!{*~#FS zvbF7rrX3*>p`ha7?Twk=@RbP<)uuZdd?Ys7`5nc9jU4X-R$s>F)Dq{F&tCD{oZ;sN z{F42`&S2tgTsmv0C8@!K+bC&MwFPk?NlEv(_-%ZU0{}V?031jV2?an}_;q>zx5}&_ z03ZXX0RestM%dT1@IYMnB^PG|AZ3*saO(G^ab?oOj{8e4ll0$J1#p!M=^T$`{0n^&k0>NEd5bK`N z;Mwe(G2^eH`GNU>DPtQ!$--8`RsJ2R9gttPJ(Om

vk(fMdFPKZ@g5pyC$D!x`(AMe$&IwX+WHI$Vg2BgYqCYfl^Kge6$T$REH<@U z-e;HD9MNs>84EH=r969SI^{&58zpq7T(B(b*BbrqDY2SklJ|#vWh{CSJ&XSdooYol zTtTa;b%VbPq>3vO5PAVY zO#|4D(WjWI?6pjxf8!C28kVGJ@|1yTdMGgQ7;OjDw|a-S=g)4)-`}tI(`SxR9TC2m)tx(R))XGy#opC<(2D0091s zQwGCucrhYafzuWRB>KC6Lmh&s0DvRG(&iii7vj5JzNK+S{-Q8Tx5GT6hZ2(q1NG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