942 B
942 B
Custom Routes
- tags
- cisco
- source
- https://github.com/advthreat/iroh/issues/5411
Reference
https://github.com/advthreat/iroh/issues/5411
We propose to provide two new endpoints to simplify and standardize this integration system.
POST /iroh/oauth/custom/code
that could only called using a user's JWT with theoauth:write
scope. Given aclient-id
it will grant that client (no need to pass via the CSRF token step) and returns a code (directly and not a URL the client would need to parse)POST /iroh/oauth/custom/tokens
that could only be called using a user's JWT with theoauth:write
scope.
This route also need a client_id
, client_secret
.
This will grant the client on behalf of the user and returns a classical /token
response.