deft/notes/new_iroh_auth_apis.org
Yann Esposito (Yogsototh) dce248c408
notes/new_iroh_auth_apis.org
2022-02-08 11:40:48 +01:00

1,014 B

New IROH-Auth APIs

tags
Cisco FT SecureX Simplified Registration Cisco
source
https://github.com/advthreat/iroh/issues/6076

Implement a new IROH-Auth API

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

The main differences should be:

Filter on the correct oauth/kind Have a .../user-identity/... instead of .../user/... Etc…

Then create new proto-Web API using this new configuration for the JWT. The first endpoint should be:

~/iroh/