]> source.dussan.org Git - gitea.git/commit
Add scopes to API to create token and display them (#22989)
authorzeripath <art27@cantab.net>
Mon, 20 Feb 2023 21:28:44 +0000 (21:28 +0000)
committerGitHub <noreply@github.com>
Mon, 20 Feb 2023 21:28:44 +0000 (15:28 -0600)
commitd2128b44f714fcaacdc88865e62f6f9dd8216577
treef6697bf42a61acc7f31b378882124e764281106b
parent330b16642305458339d12222eea2ee9a1bbb3b64
Add scopes to API to create token and display them (#22989)

The API to create tokens is missing the ability to set the required
scopes for tokens, and to show them on the API and on the UI.

This PR adds this functionality.

Signed-off-by: Andrew Thornton <art27@cantab.net>
models/auth/token_scope.go
modules/structs/user_app.go
options/locale/locale_en-US.ini
routers/api/v1/user/app.go
templates/swagger/v1_json.tmpl
templates/user/settings/applications.tmpl