Closed emplam27 closed 1 week ago
The changes introduce new environment variables for GitHub OAuth in the backend/.env.development
file, including GITHUB_AUTHORIZATION_URL
, GITHUB_TOKEN_URL
, and GITHUB_USER_PROFILE_URL
. Additionally, the GithubStrategy
class in backend/src/auth/github.strategy.ts
has been updated to utilize these new variables in its configuration for the authentication strategy while keeping existing properties unchanged.
File | Change Summary |
---|---|
backend/.env.development | Added variables: GITHUB_AUTHORIZATION_URL , GITHUB_TOKEN_URL , GITHUB_USER_PROFILE_URL with descriptions and expected value formats. Existing variables remain unchanged. |
backend/src/auth/github.strategy.ts | Modified GithubStrategy class to include authorizationURL , tokenURL , and userProfileURL properties from ConfigService . Existing properties remain unchanged. |
In the garden where code does bloom,
New paths for GitHub, we make room.
With tokens and URLs, we set the stage,
For seamless logins, we turn the page.
Hops of joy in every line,
A rabbit's cheer for code divine! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Thanks for the PR. Could you sign the CLA?
@devleejb done! thank you :)
What this PR does / why we need it:
Added an envs for using passport-github on Github Enterprise Oauth app.
Default value is for Github Oauth app. if yor want to Github Enterprise OAuth app, change those envs.
https://github.com/login/oauth/authorize
=>https://ENTERPRISE_INSTANCE_URL/login/oauth/authorize
https://github.com/login/oauth/access_token
=>https://ENTERPRISE_INSTANCE_URL/login/oauth/access_token
https://api.github.com/user
=>https://ENTERPRISE_INSTANCE_URL/api/v3/user
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation:
Checklist:
Summary by CodeRabbit
New Features
GithubStrategy
to utilize additional parameters for better integration with GitHub services.Bug Fixes
Documentation