deft/notes/new_iroh_auth_apis.org

19 lines
769 B
Org Mode
Raw Normal View History

2022-02-08 10:25:51 +00:00
:PROPERTIES:
:ID: 2c317dbe-4fca-444b-b0bc-f9174522e106
:END:
#+TITLE: New IROH-Auth APIs
#+Author: Yann Esposito
#+Date: [2022-02-08]
- tags :: [[id:1208f09c-d37d-4e6b-9110-151f3c6b7d34][Cisco FT SecureX Simplified Registration]] [[id:91f33b35-6e4e-4213-b214-972ee20722df][Cisco]]
- source :: https://github.com/advthreat/iroh/issues/6076
2022-02-08 10:28:58 +00:00
* Implement a new IROH-Auth API
2022-02-08 10:30:42 +00:00
With https://github.com/advthreat/iroh/pull/6247 you can now put a specific
JWT middleware configuration for a Web API.
2022-02-08 10:31:47 +00:00
So here we just need to provide a new specific function to check JWT to
accepts the new UserIdentity-level JWTs.
2022-02-08 10:33:08 +00:00
So have a function inspired by ~iroh-web.core/check-jwt-fields~,
see: https://github.com/advthreat/iroh/blob/master/lib/iroh-web/src/iroh_web/core.clj#L138