Hey everyone! I’m currently working on a plugin and I’m looking to integrate OAuth for user authentication. I’m a bit stuck and could use some guidance from the community.
Has anyone here successfully added OAuth to their plugin?
Any tips, code snippets would be greatly appreciated!
Hey Mustafa,
I found this really helpful for understanding oauth. Give it a read there are detailed examples.
Before you read it, for terminolody Open AI is the application and you are building the service authorizing open AI
Here is the documentaion on how oauth works.
OAuth 2.0 Simplified
OAuth 2.0 is the modern standard for securing access to APIs. OAuth 2.0 Simplified is a guide to building an OAuth 2.0 server. Through high-level
Hope that helps.
And to answer your question. you need to generate a clientID and client secret yourself and give it to openai. You then need to use it to validate their request to you in the future to build a secure application.
Check out the docs for furthur details and hopefully it will all be clear
Good luck!
(this is the repost of a comment I left on a different thread for reference)
1 Like