-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
OAuth2 Grant UI #6625
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
OAuth2 Grant UI #6625
Changes from 10 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
0f9d842
Add oauth2 grants ui
jonasfranz f85005e
Merge branch 'master' of ssh://github.com/go-gitea/gitea into feature…
jonasfranz c1e27ae
Add delete functionality
jonasfranz e2736a1
Fix unit tests
jonasfranz 5176ebe
Fix unit tests
jonasfranz dcfcaa9
Refactor DeleteOAuth2Grant
jonasfranz 52f10b9
Merge branch 'master' into feature/oauth2-grants-ui
jonasfranz f134d2c
Refactor DeleteOAuth2Grant (again)
jonasfranz a97db5f
Merge remote-tracking branch 'jonas/feature/oauth2-grants-ui' into fe…
jonasfranz 9f336a4
Merge branch 'master' into feature/oauth2-grants-ui
jonasfranz c947784
Check if user ID is zero
jonasfranz 574beca
Merge remote-tracking branch 'jonas/feature/oauth2-grants-ui' into fe…
jonasfranz 833e03d
Merge branch 'master' into feature/oauth2-grants-ui
jonasfranz d704744
Check if grant ID is zero
jonasfranz 36be529
Merge remote-tracking branch 'jonas/feature/oauth2-grants-ui' into fe…
jonasfranz 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
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,39 @@ | ||
<h4 class="ui top attached header"> | ||
{{.i18n.Tr "settings.authorized_oauth2_applications"}} | ||
</h4> | ||
<div class="ui attached segment"> | ||
<div class="ui key list"> | ||
<div class="item"> | ||
{{.i18n.Tr "settings.authorized_oauth2_applications_description"}} | ||
</div> | ||
{{range $grant := .Grants}} | ||
<div class="item"> | ||
<div class="right floated content"> | ||
<button class="ui red tiny button delete-button" id="revoke-gitea-oauth2-grant" | ||
data-url="{{AppSubUrl}}/user/settings/applications/oauth2/revoke" | ||
data-id="{{$grant.ID}}"> | ||
{{$.i18n.Tr "settings.revoke_key"}} | ||
</button> | ||
</div> | ||
<i class="big key icon"></i> | ||
<div class="content"> | ||
<strong>{{$grant.Application.Name}}</strong> | ||
<div class="activity meta"> | ||
<i>{{$.i18n.Tr "settings.add_on"}} <span>{{$grant.CreatedUnix.FormatShort}}</span></i> | ||
</div> | ||
</div> | ||
</div> | ||
{{end}} | ||
</div> | ||
</div> | ||
|
||
<div class="ui small basic delete modal" id="revoke-gitea-oauth2-grant"> | ||
<div class="ui icon header"> | ||
<i class="shield alternate icon"></i> | ||
{{.i18n.Tr "settings.revoke_oauth2_grant"}} | ||
</div> | ||
<div class="content"> | ||
<p>{{.i18n.Tr "settings.revoke_oauth2_grant_description"}}</p> | ||
</div> | ||
{{template "base/delete_modal_actions" .}} | ||
</div> |
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.