-
Notifications
You must be signed in to change notification settings - Fork 534
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
[Question][GitHub] App Refresh Token #8242
Comments
Hello @endersonmenezes! I'm here to help you with any bugs, questions, or contributions you have in mind. Let's work on solving this together! The For GitHub App authentication and token management, the current implementation uses a combination of access tokens and app keys. The Unfortunately, there is no specific documentation or code in the repository that details the process of refreshing GitHub tokens for GitHub Apps, nor are there specific files or directories dedicated to this logic [2]. If you are looking to implement token refresh functionality, you might need to explore the GitHub API documentation for guidance on how to handle token refresh for GitHub Apps. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
@dosu If I put the logic to generate and verify the token inside the "PrepareApiClient" function, would it be valid? Or would it keep this fixed and continue to have problems with a repository that takes more than an hour to collect the data. |
Implementing token generation and verification logic directly within the For operations that take more than an hour, you should consider implementing a mechanism to refresh tokens dynamically during the operation. This could involve checking the token's expiration time and requesting a new token when necessary, rather than relying solely on the initial setup in To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
@dosu Do you believe that implementing a method that tests the Token within the URL within GitExtractor would be a better approach? If so, where would you recommend? |
Implementing a method to test the token within the URL in the GitExtractor could be a viable approach to ensure that the token is valid before proceeding with operations. This would help in handling token expiration issues effectively. A suitable place to implement this logic would be within the Additionally, you might consider implementing a utility function that can be called to validate the token. This function could be reused in other parts of the code where token validation is necessary, promoting code reusability and maintainability. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
The commit To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Okay, I was able to look at the code more with a friend (@ClaudioMascaro ). Maybe it's necessary to do something in the ApiClient during the task execution time, but it would be something that I would check if it's a task coming from GitHub, I don't know to what extent this is an interesting design for the tool. Could any maintainer discuss this further with us? |
Question
I'm trying to develop a method to refresh the GitHub token when using GitHub Apps, I'm checking the files in the folder, but I haven't found much logic when a GetDynamicGitUrl is requested, I believe the logic could be here.
Screenshots
If applicable, add screenshots to help explain.
Additional context
I don't work directly with the tool, but I'm interested in the project and I want to be able to contribute with small things, but I'm still getting to grips with the product's logic, if anyone can help I'd be grateful.
The text was updated successfully, but these errors were encountered: