From c823418453d1ceff07fbd94874182fce5dfb95bf Mon Sep 17 00:00:00 2001 From: Kyle Kelley Date: Tue, 8 Aug 2023 18:55:45 -0700 Subject: [PATCH] include new intro, outro, and descr --- blog/2023-08-04-oauth-plugin/index.mdx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/blog/2023-08-04-oauth-plugin/index.mdx b/blog/2023-08-04-oauth-plugin/index.mdx index 83f3d18..525a6a2 100644 --- a/blog/2023-08-04-oauth-plugin/index.mdx +++ b/blog/2023-08-04-oauth-plugin/index.mdx @@ -2,7 +2,7 @@ slug: oauth-for-chatgpt-plugins title: "OAuth for ChatGPT Plugins" authors: [kafonek] -description: "How Noteable added OAuth to its ChatGPT Plugin" +description: "How Noteable added OAuth to its ChatGPT Plugin. By now, everyone has played with a large language model like ChatGPT, at least a user. You've probably gone through those cycles of copying and pasting your email drafts, code snippets, or posts. There's a lot of power in giving large language models more context. The biggest way to do this is to provide access to documents directly. As a developer, you can enable this experience by writing a ChatGPT Plugin that uses OAuth." image: "./oauth-plugin-social-card.png" tags: [chatgpt, plugins, chatgpt plugins, oauth, security, architecture] --- @@ -11,6 +11,16 @@ tags: [chatgpt, plugins, chatgpt plugins, oauth, security, architecture] By now, everyone has played with a large language model like ChatGPT, at least a user. You've probably gone through those cycles of copying and pasting your email drafts, code snippets, or posts. There's a lot of power in giving large language models more context. The biggest way to do this is to provide access to documents directly. As a developer, you can enable this experience by writing a ChatGPT Plugin that uses OAuth. +:::tip + +[OpenAI's own plugin docs](https://platform.openai.com/docs/plugins/review) include two use cases that either require OAuth or are greatly augmented by it. + +1. Retrieval over **user-specific** or otherwise hard-to-search knowledge sources + +2. Plugins that give the model **computational** abilities + +::: + OAuth is a mechanism used to enable Single Sign-On (SSO) across applications. When you install the Noteable ChatGPT plugin, you can choose to login or sign up (it's free!) to Noteable using an existing Google, Github, or LinkedIn account. In this post, the Noteable engineering team wants to share some of the low-level details of how OAuth works, and how it's implemented in Noteable. We hope this helps other plugin developers and the community at large. Let’s start with why a plugin would use OAuth, compared to “no auth” or “service level auth”. Simply put, if your plugin or downstream API needs to know about a logged in user, use OAuth. For instance, if you were writing a wikipedia-reading plugin you could skip OAuth because you don’t need to have a logged in user to read Wiki. If the large language model (LLM) is creating Notebooks and running code via the Noteable plugin, which goes through role-based access control (RBAC) permission checks and user-context-aware features, we need to know what user account the request is for. @@ -53,7 +63,7 @@ When you click "develop your own plugin" in ChatGPT and give it the domain your ![Develop your own Plugin step 2](./develop_plugin2.png) -After you've put those in, ChatGPT will give you a token that you need to add to your manifest file and then redeploy / restart. +After you've put those in, ChatGPT will give you a token that you need to add to your manifest file and then redeploy / restart. ![Develop your own Plugin step 3](./develop_plugin3.png) @@ -93,3 +103,7 @@ We mentioned at the top of the post that you cannot do OAuth testing in localhos ![Localhost Development](./localhost_dev.svg) ## Final Thoughts + +Integrating OAuth with ChatGPT plugins opens up a world of personalized possibilities, linking the reasoning capabilities of Large Language Models with personalized content. If you're a developer inspired by the idea of creating powerful, user-centric plugins, now's the time to get started. Dive into plugins, explore [OpenAI's documentation on plugins](https://platform.openai.com/docs/plugins/introduction), and make the most of OAuth to unlock the potential of personalized interaction. Join us on this journey and let's redefine what plugins can do! + +