Auth: Remove api key endpoints (#106019)

* remove api key endpoints

* generate openapi specs

* remove methods from mock service

* remove ApiKeyDTO

* generate openapi specs

* remove apikey migration endpoints

* remove unused function
This commit is contained in:
Mihai Doarna
2025-06-04 17:03:06 +03:00
committed by GitHub
parent e78da0cc39
commit d57d184d20
25 changed files with 0 additions and 930 deletions
-16
View File
@@ -1,12 +1,5 @@
package dtos
import (
"time"
"github.com/grafana/grafana/pkg/services/accesscontrol"
"github.com/grafana/grafana/pkg/services/org"
)
// swagger:model
type NewApiKeyResult struct {
// example: 1
@@ -16,12 +9,3 @@ type NewApiKeyResult struct {
// example: glsa_yscW25imSKJIuav8zF37RZmnbiDvB05G_fcaaf58a
Key string `json:"key"`
}
type ApiKeyDTO struct {
ID int64 `json:"id"`
Name string `json:"name"`
Role org.RoleType `json:"role"`
Expiration *time.Time `json:"expiration,omitempty"`
LastUsedAt *time.Time `json:"lastUsedAt,omitempty"`
AccessControl accesscontrol.Metadata `json:"accessControl,omitempty"`
}