@@ -30,6 +30,20 @@ type AuthLoginResponse struct {
|
||||
TokenType string `json:"token_type"`
|
||||
}
|
||||
|
||||
// AuthMeResponse represents the authenticated identity extracted from JWT claims.
|
||||
type AuthMeResponse struct {
|
||||
Status string `json:"status"`
|
||||
Subject string `json:"subject"`
|
||||
Roles []string `json:"roles,omitempty"`
|
||||
Groups []string `json:"groups,omitempty"`
|
||||
Issuer string `json:"issuer"`
|
||||
Audience string `json:"audience"`
|
||||
IssuedAt int64 `json:"issued_at"`
|
||||
ExpiresAt int64 `json:"expires_at"`
|
||||
NotBefore int64 `json:"not_before"`
|
||||
TokenID string `json:"token_id"`
|
||||
}
|
||||
|
||||
// SnapshotMigrationStats mirrors the snapshot registry migration stats payload.
|
||||
type SnapshotMigrationStats struct {
|
||||
HourlyRenamed int `json:"HourlyRenamed"`
|
||||
|
||||
Reference in New Issue
Block a user