Open-Assistant icon indicating copy to clipboard operation
Open-Assistant copied to clipboard

Support user-level OAuth plugin authentication

Open olliestanley opened this issue 2 years ago • 0 comments

Will support plugins for which ai-plugin.json contains:

"auth": {
  "type": "oauth"
},
  • [ ] Plugin has client ID and secret, securely store encrypted version of client secret, store client ID
  • [ ] Mechanism for plugin author receiving verification token
  • [ ] Chat UI support for authenticating with a plugin
  • [ ] Redirect user to plugin auth URL
  • [ ] When user is redirected back to OA, exchange received code for an access token
  • [ ] Pass access token to frontend which will pass it back in future plugin-enabled inference requests

See OpenAI spec for OAuth plugin authentication.

olliestanley avatar May 09 '23 19:05 olliestanley