In the ai-plugin.json file, there are two crucial fields that need to be determined beforehand: “verification_tokens” and “redirect_uri”.
The “verification_tokens” field includes a subfield for “openai”, which in this case is assigned the value “287906e290dd4119ae9d481eec23bdea”.
The “redirect_uri” field is also significant because our OAuth server (app) verifies if it corresponds with the “redirect_uri” received from the client side.
Before transitioning to a production environment, how can I ascertain the appropriate values for the “openai” token and “redirect_uri”?
The verification token is not something you can know in advance.
When you are developing your plugin, you will go over the OAuth installation flow and OpenAI will give you this verification token. You will have to add it to your manifest file once. That’s it.
Regarding the redirect URI, it’s the URI where your backend will proceed the oAuth flow. So basically if you know your production domain name for your backend, you know this URL.
That being said, you probably should not waste your time implementing this if you are not comfortable with it. You can literally configure an oAuth portal in 5 minutes by using www.pluginlab.ai
If you install this plugin for example, you will see the oAuth portal you can get in five minutes:
We already developed oauth, per my understanding redirect_uri should not be my production domain but redirect uri from openai so our backend can verify it, right?