[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:
co-authored by
Michael Mandrus
parent
fd4c86539b
commit
8de772e55d
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user