Commit graph

3 commits

Author SHA1 Message Date
k9ert
48fea77b8a
fix: validate active API tokens (#2685) 2026-08-08 14:57:14 +02:00
k9ert
9df0b77f8c
Feature: Spectrum addition (#1952)
* add spectrum

* rc3 of spectrum

* spectrum rc4

* missing __init__.py

* changes for rc6

* make cli-arguments work in electron

* update spectrum to remove simplejson

* Bugfix devices not shown

* additional checks for wallet_import

* nodes template magic to improve extensibility

* smaller bugfixes

* update spectrum

* keep python 3.9 in pre-commit-yaml

* specter_added_to_flask_app callback added

* useful logger + avoid writing to config with no node alias

* Using FlaskThread

* remove overriding chain property in node.py

* nodes_by_chain method added to node mananger

* icons for spectrum setup

* keep external_node and fix test

* bump spectrum version

* more visibility

* deactivate checker_threads for testing

Co-authored-by: k9ert <kim@swanbitcoin.com>
Co-authored-by: Manolis Mandrapilias <70536101+moneymanolis@users.noreply.github.com>
Co-authored-by: moneymanolis <moneymanolis@protonmail.com>
2022-11-30 13:13:16 +01:00
Ankur
793a8c5e69
Feature: Implement JWT authentication in REST API (#1785)
* Added jwt auth

* Added get and delete request, also added jwt functions

* Added proper naming conventions and status codes

* Added hashmap for storing key-value pair of jwt tokens

* Updated nomenclature and added descriptions to the Resources

* Implemented nested hashmap of jwt tokens

Signed-off-by: ankur12-1610 <anknerd.12@gmail.com>

* Added jwt token verification which can be used inplace of basic password verification

* Implemented token expiration check

* Added time parser for converting different units to seconds

* Changed parsing method

* Adding seperate token resource instead of secure resource

* Fixed test-rest.py and added token auth to AdminResource

Signed-off-by: ankur12-1610 <anknerd.12@gmail.com>

* Added new tests for jwt endpoints

Signed-off-by: ankur12-1610 <anknerd.12@gmail.com>

* Added documentation for jwt_endpoints

* Added curl and python usage

* reduce differences to master for requirements.txt

* refined API Documentation

* typo

* typos

* fix test

Signed-off-by: ankur12-1610 <anknerd.12@gmail.com>
Co-authored-by: Kim Neunert <k9ert@gmx.de>
2022-10-20 12:17:48 +02:00