-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Pre-register OAuth2 applications for git credential helpers #26291
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
97d30ec
preconfigure git-credential-oauth
hickford 798a5ec
Merge branch 'main' into git-credential-oauth
denyskon 9e1fbee
Merge remote-tracking branch 'upstream/main' into git-credential-oauth
denyskon ad62ed5
refactor pre-registered application support
denyskon 80a83b9
update app.example.ini
denyskon 3139825
fmt docs
denyskon c1ca86c
lookup registered iauth2 apps by client id instead of user
denyskon b571702
Merge remote-tracking branch 'upstream/main' into git-credential-oauth
denyskon e6c3192
reference migration in migrations.go
denyskon b574494
prevent locked oauth2 apps from being deleted
denyskon 950013d
Merge branch 'main' into git-credential-oauth
denyskon 3c7f4bf
Merge branch 'main' into git-credential-oauth
denyskon f1bd5a3
refactor
wxiaoguang c9e9c0e
Merge pull request #3 from wxiaoguang/git-credential-oauth
denyskon 2eb3b88
Merge remote-tracking branch 'upstream/main' into git-credential-oauth
denyskon 844f55c
disallow editing builtin oauth2 applications
denyskon 8aa3846
add oauth2 application description & client ID to docs
denyskon e5722d8
Merge remote-tracking branch 'upstream/main' into git-credential-oauth
denyskon 3d101e3
Merge branch 'main' into git-credential-oauth
GiteaBot 9a29372
Merge branch 'main' into git-credential-oauth
GiteaBot 006e659
Merge branch 'main' into git-credential-oauth
GiteaBot e12d8a6
Merge branch 'main' into git-credential-oauth
GiteaBot bd337c4
Merge branch 'main' into git-credential-oauth
GiteaBot d100268
Merge branch 'main' into git-credential-oauth
GiteaBot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright 2023 The Gitea Authors. All rights reserved. | ||
// SPDX-License-Identifier: MIT | ||
|
||
package v1_21 //nolint | ||
|
||
import ( | ||
"xorm.io/xorm" | ||
) | ||
|
||
func OAuth2ApplicationAddLockedProperty(x *xorm.Engine) error { | ||
denyskon marked this conversation as resolved.
Show resolved
Hide resolved
|
||
type OAuth2Application struct { | ||
Locked bool `xorm:"NOT NULL DEFAULT FALSE"` | ||
} | ||
return x.Sync(new(OAuth2Application)) | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.