feat(core): add scope support for client creds#752
Conversation
Summary of ChangesHello @c-r33d, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the client credentials authentication flow by introducing support for OAuth scopes, enabling users to define specific permissions during authentication. Concurrently, it updates the project's Go SDK and other core dependencies, ensuring the application remains current with the latest platform features and improvements. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds support for scopes when using client credentials for authentication. The changes look good and cover the necessary updates in command-line handling, authentication logic, and documentation. I've added a few suggestions to improve the implementation by removing a package-level variable and simplifying some of the new logic.
|
/gemini review |
There was a problem hiding this comment.
Code Review
The pull request successfully introduces scope support for client credentials authentication. However, there are critical issues in the go.mod file regarding the Go version and an unintentional dependency downgrade. Additionally, I recommend exporting the scope normalization logic to ensure consistency between the CLI input and the stored profile data.
X-Test Failure Report |
X-Test Failure Report |
Co-authored-by: Jake Van Vorhis <83739412+jakedoublev@users.noreply.github.com>
1.) Add scopes support when using client creds to auth.
2.) Bump SDK to v0.13
3.) Bump golangci-lint to v2.10.1