[v11.0.x] CloudMigrations: Add instance metadata to auth token (#86371)

CloudMigrations: Add instance metadata to auth token (#85381)

* update how tokens are passed around

* rename structs

(cherry picked from commit 5a5f76ae0a)

Co-authored-by: Michael Mandrus <41969079+mmandrus@users.noreply.github.com>
This commit is contained in:
grafana-delivery-bot[bot]
2024-04-16 16:45:57 +01:00
committed by GitHub
co-authored by Michael Mandrus
parent fd4c86539b
commit 8de772e55d
4 changed files with 50 additions and 6 deletions
+12
View File
@@ -87,3 +87,15 @@ type CreateAccessTokenResponse struct {
type CreateAccessTokenResponseDTO struct {
Token string `json:"token"`
}
type Base64EncodedTokenPayload struct {
Token string
Instance Base64HGInstance
}
type Base64HGInstance struct {
StackID int
Slug string
RegionSlug string
ClusterSlug string
}