diff --git a/notes/new_iroh_auth_apis.org b/notes/new_iroh_auth_apis.org index 03e5f291..6abede6d 100644 --- a/notes/new_iroh_auth_apis.org +++ b/notes/new_iroh_auth_apis.org @@ -24,6 +24,14 @@ Have a ~.../user-identity/...~ instead of ~.../user/...~ Etc… Then create new proto-Web API using this new configuration for the JWT. + +#+begin_src clojure +(web/defwebservice-with-params iroh-auth-spa-api [] + {,,, + :options {:jwt-middleware-option-patch + {:jwt-check-fn user-identity-jwt-check-fn}}} +#+end_src + The first endpoint should be ~GET /iroh/iroh-auth-apis/whoami~ whose only goal would be to display a user-friendly JSON of the ~identity~ field of the ring request.