mirror of
https://gitea.com/gitea/terraform-provider-gitea.git
synced 2024-06-01 22:21:23 +05:30
Fix: Add token scope 'all'
This commit is contained in:
parent
956cdb7e13
commit
1e7e286a8f
|
@ -8,10 +8,7 @@ provider "gitea" {
|
|||
// The token owner is the creator of the token
|
||||
resource "gitea_token" "test_token" {
|
||||
name = "test_token"
|
||||
scopes = [
|
||||
"read:issue",
|
||||
"read:notification"
|
||||
]
|
||||
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 a new issue