notes/new_iroh_auth_apis.org
This commit is contained in:
parent
a4a98c0b7b
commit
f0de8bb2c2
1 changed files with 8 additions and 0 deletions
|
@ -24,6 +24,14 @@ Have a ~.../user-identity/...~ instead of ~.../user/...~
|
||||||
Etc…
|
Etc…
|
||||||
|
|
||||||
Then create new proto-Web API using this new configuration for the JWT.
|
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~
|
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~
|
whose only goal would be to display a user-friendly JSON of the ~identity~
|
||||||
field of the ring request.
|
field of the ring request.
|
||||||
|
|
Loading…
Reference in a new issue