Revert "Remove connectordata from other structs"

This reverts commit 27f33516db343bd79b56a47ecef0fe514a35082d.
This commit is contained in:
Joel Speed
2019-04-18 13:52:05 +01:00
parent fea048b3e8
commit 176ba709a4
3 changed files with 29 additions and 22 deletions

View File

@@ -181,7 +181,8 @@ type AuthRequest struct {
// The connector used to login the user and any data the connector wishes to persists.
// Set when the user authenticates.
ConnectorID string
ConnectorID string
ConnectorData []byte
}
// AuthCode represents a code which can be exchanged for an OAuth2 token response.
@@ -212,8 +213,9 @@ type AuthCode struct {
Scopes []string
// Authentication data provided by an upstream source.
ConnectorID string
Claims Claims
ConnectorID string
ConnectorData []byte
Claims Claims
Expiry time.Time
}
@@ -235,8 +237,9 @@ type RefreshToken struct {
ClientID string
// Authentication data provided by an upstream source.
ConnectorID string
Claims Claims
ConnectorID string
ConnectorData []byte
Claims Claims
// Scopes present in the initial request. Refresh requests may specify a set
// of scopes different from the initial request when refreshing a token,