Revert "Update Kubernetes storage backend"
This reverts commit 228bdc324877bf67ecdd434503b9c1b25d8e7d28.
This commit is contained in:
parent
236b25b68e
commit
45a40a13a3
@ -266,6 +266,7 @@ type AuthRequest struct {
|
|||||||
Claims Claims `json:"claims,omitempty"`
|
Claims Claims `json:"claims,omitempty"`
|
||||||
// The connector used to login the user. Set when the user authenticates.
|
// The connector used to login the user. Set when the user authenticates.
|
||||||
ConnectorID string `json:"connectorID,omitempty"`
|
ConnectorID string `json:"connectorID,omitempty"`
|
||||||
|
ConnectorData []byte `json:"connectorData,omitempty"`
|
||||||
|
|
||||||
Expiry time.Time `json:"expiry"`
|
Expiry time.Time `json:"expiry"`
|
||||||
}
|
}
|
||||||
@ -289,6 +290,7 @@ func toStorageAuthRequest(req AuthRequest) storage.AuthRequest {
|
|||||||
ForceApprovalPrompt: req.ForceApprovalPrompt,
|
ForceApprovalPrompt: req.ForceApprovalPrompt,
|
||||||
LoggedIn: req.LoggedIn,
|
LoggedIn: req.LoggedIn,
|
||||||
ConnectorID: req.ConnectorID,
|
ConnectorID: req.ConnectorID,
|
||||||
|
ConnectorData: req.ConnectorData,
|
||||||
Expiry: req.Expiry,
|
Expiry: req.Expiry,
|
||||||
Claims: toStorageClaims(req.Claims),
|
Claims: toStorageClaims(req.Claims),
|
||||||
}
|
}
|
||||||
@ -314,6 +316,7 @@ func (cli *client) fromStorageAuthRequest(a storage.AuthRequest) AuthRequest {
|
|||||||
LoggedIn: a.LoggedIn,
|
LoggedIn: a.LoggedIn,
|
||||||
ForceApprovalPrompt: a.ForceApprovalPrompt,
|
ForceApprovalPrompt: a.ForceApprovalPrompt,
|
||||||
ConnectorID: a.ConnectorID,
|
ConnectorID: a.ConnectorID,
|
||||||
|
ConnectorData: a.ConnectorData,
|
||||||
Expiry: a.Expiry,
|
Expiry: a.Expiry,
|
||||||
Claims: fromStorageClaims(a.Claims),
|
Claims: fromStorageClaims(a.Claims),
|
||||||
}
|
}
|
||||||
@ -411,6 +414,7 @@ func (cli *client) fromStorageAuthCode(a storage.AuthCode) AuthCode {
|
|||||||
ClientID: a.ClientID,
|
ClientID: a.ClientID,
|
||||||
RedirectURI: a.RedirectURI,
|
RedirectURI: a.RedirectURI,
|
||||||
ConnectorID: a.ConnectorID,
|
ConnectorID: a.ConnectorID,
|
||||||
|
ConnectorData: a.ConnectorData,
|
||||||
Nonce: a.Nonce,
|
Nonce: a.Nonce,
|
||||||
Scopes: a.Scopes,
|
Scopes: a.Scopes,
|
||||||
Claims: fromStorageClaims(a.Claims),
|
Claims: fromStorageClaims(a.Claims),
|
||||||
@ -424,6 +428,7 @@ func toStorageAuthCode(a AuthCode) storage.AuthCode {
|
|||||||
ClientID: a.ClientID,
|
ClientID: a.ClientID,
|
||||||
RedirectURI: a.RedirectURI,
|
RedirectURI: a.RedirectURI,
|
||||||
ConnectorID: a.ConnectorID,
|
ConnectorID: a.ConnectorID,
|
||||||
|
ConnectorData: a.ConnectorData,
|
||||||
Nonce: a.Nonce,
|
Nonce: a.Nonce,
|
||||||
Scopes: a.Scopes,
|
Scopes: a.Scopes,
|
||||||
Claims: toStorageClaims(a.Claims),
|
Claims: toStorageClaims(a.Claims),
|
||||||
@ -467,6 +472,7 @@ func toStorageRefreshToken(r RefreshToken) storage.RefreshToken {
|
|||||||
LastUsed: r.LastUsed,
|
LastUsed: r.LastUsed,
|
||||||
ClientID: r.ClientID,
|
ClientID: r.ClientID,
|
||||||
ConnectorID: r.ConnectorID,
|
ConnectorID: r.ConnectorID,
|
||||||
|
ConnectorData: r.ConnectorData,
|
||||||
Scopes: r.Scopes,
|
Scopes: r.Scopes,
|
||||||
Nonce: r.Nonce,
|
Nonce: r.Nonce,
|
||||||
Claims: toStorageClaims(r.Claims),
|
Claims: toStorageClaims(r.Claims),
|
||||||
@ -488,6 +494,7 @@ func (cli *client) fromStorageRefreshToken(r storage.RefreshToken) RefreshToken
|
|||||||
LastUsed: r.LastUsed,
|
LastUsed: r.LastUsed,
|
||||||
ClientID: r.ClientID,
|
ClientID: r.ClientID,
|
||||||
ConnectorID: r.ConnectorID,
|
ConnectorID: r.ConnectorID,
|
||||||
|
ConnectorData: r.ConnectorData,
|
||||||
Scopes: r.Scopes,
|
Scopes: r.Scopes,
|
||||||
Nonce: r.Nonce,
|
Nonce: r.Nonce,
|
||||||
Claims: fromStorageClaims(r.Claims),
|
Claims: fromStorageClaims(r.Claims),
|
||||||
|
Reference in New Issue
Block a user