Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Try this to make the process simpler-Instead of adding APIs manually from openai and many other sources Make users to login via google account with necessary permissions and then automatically update APIs #1321

Open
1 task done
albineb007 opened this issue Jun 28, 2024 · 0 comments
Labels

Comments

@albineb007
Copy link

Is there an existing issue for the same feature request?

  • I have checked the existing issues.

Is your feature request related to a problem?

Users get frustrated when they try collecting API and then when they do it shows error and connecting many AI takes time that is Frustrating...

Here’s how you can approach implementing this:

Google Sign-In Integration:
Integrate Google Sign-In into your RAGFlow web application. You can follow the official guide to add a Google Sign-In button to your site.
This will allow users to log in using their Google accounts, granting necessary permissions.
User Authentication and Permissions:
Once a user logs in, obtain an access token or an ID token from Google.
Use this token to authenticate the user and verify their identity.
Ensure that your RAGFlow backend validates the token and retrieves the user’s Google account information.
Automatically Update APIs:
When a user logs in, associate their Google account with their RAGFlow profile.
Implement a mechanism to periodically check for updates to APIs (e.g., OpenAI APIs) based on user preferences.
Fetch the latest API data and update RAGFlow’s knowledge base accordingly.
Remember to handle edge cases, such as token expiration, user revocation of permissions, and error handling during API updates. Good luck with your feature development! 🚀

For more details about RAGFlow, you can explore the GitHub repository and learn about its unique features1

Describe the feature you'd like

Adding a feature to RAGFlow that allows users to log in via their Google accounts and automatically update APIs is a great idea.

Describe implementation you've considered

Google Sign-In Integration:
Implement Google Sign-In on your platform. You can use the Google Identity Services (GSI) to allow users to sign in using their Google accounts1.
Ensure that your application requests the necessary permissions from users during the sign-in process.
Automatic API Updates:
Once users are signed in, you can manage their API access and permissions.
Use structured data from your website or application to update APIs automatically. Google can extract information like prices, availability, and conditions from your website and apply these updates to the APIs
For example, if you have a product API, Google can update the price and availability based on the data found on your website.
Account Management:
Consider using the Account Management API to handle updates for business accounts3.
Personal accounts cannot be updated using this method, so focus on business accounts.

Documentation, adoption, use case

No response

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants