-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Fix creating OAuth2 auth source from CLI #14116
Conversation
Codecov Report
@@ Coverage Diff @@
## master #14116 +/- ##
=======================================
Coverage 42.34% 42.34%
=======================================
Files 726 726
Lines 77839 77852 +13
=======================================
+ Hits 32960 32967 +7
- Misses 39462 39469 +7
+ Partials 5417 5416 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! (fixes #8356 and #12938)
It would be nicer if goth
providers were updated when adding a provider via CLI, instead of an error fallback during login.
The root of the issue is, that the CLI modifies the state of goth
in the CLI process, not in the long-running gitea process.
Currently there is no RPC mechanism for this, we could add an API endpoint POST /api/v1/admin/auth-source
for this.
As a first stopgap for the bug this still looks good to me.
make lg-tm work |
This MR fixing creation OAuth2 auth source from CLI.
Problem is described here: #8356