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

* update how tokens are passed around

* rename structs
This commit is contained in:
Michael Mandrus
2024-03-28 15:02:54 -04:00
committed by GitHub
parent 0f1151964c
commit 5a5f76ae0a
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
}