notes/new_iroh_auth_apis.org

This commit is contained in:
Yann Esposito (Yogsototh) 2022-02-08 11:45:49 +01:00
parent f6929dc999
commit a4a98c0b7b
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -13,9 +13,9 @@ With https://github.com/advthreat/iroh/pull/6247 you can now put a specific
JWT middleware configuration for a Web API.
So here we just need to provide a new specific function to check JWT to
accepts the new UserIdentity-level JWTs.
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
accept the new UserIdentity-level JWTs.
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
The main differences should be:
@ -34,4 +34,4 @@ field of the ring request.
(ok (:identity req)))
#+end_src
From there we will have successfully build an IROH-Auth level session.
From there we will have successfully built an IROH-Auth level session.