Fix: Add token scope 'all'
This commit is contained in:
parent
956cdb7e13
commit
1e7e286a8f
|
@ -7,11 +7,8 @@ provider "gitea" {
|
|||
|
||||
// The token owner is the creator of the token
|
||||
resource "gitea_token" "test_token" {
|
||||
name = "test_token"
|
||||
scopes = [
|
||||
"read:issue",
|
||||
"read:notification"
|
||||
]
|
||||
name = "test_token"
|
||||
scopes = ["all"]
|
||||
}
|
||||
|
||||
output "token" {
|
||||
|
|
|
@ -18,6 +18,7 @@ const (
|
|||
// validScopes contains the valid scopes for tokens as listed
|
||||
// at https://docs.gitea.com/development/oauth2-provider#scopes
|
||||
var validScopes = map[string]bool{
|
||||
"all": true,
|
||||
"read:activitypub": true,
|
||||
"write:activitypub": true,
|
||||
"read:admin": true,
|
||||
|
|
Loading…
Reference in New Issue