Add oauth token failure model and notification
This will allow me to mark when an oauth token fails and surface it to the user so that they can re-up on their auth token.
This commit is contained in:
parent
0a74bd8345
commit
a2e67e3d60
28 changed files with 2375 additions and 246 deletions
|
|
@ -96,6 +96,15 @@ var OauthTokens = Table[
|
|||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
InvalidatedAt: column{
|
||||
Name: "invalidated_at",
|
||||
DBType: "timestamp without time zone",
|
||||
Default: "NULL",
|
||||
Comment: "",
|
||||
Nullable: true,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
},
|
||||
Indexes: oauthTokenIndexes{
|
||||
OauthTokenPkey: index{
|
||||
|
|
@ -146,11 +155,12 @@ type oauthTokenColumns struct {
|
|||
ArcgisID column
|
||||
ArcgisLicenseTypeID column
|
||||
RefreshTokenExpires column
|
||||
InvalidatedAt column
|
||||
}
|
||||
|
||||
func (c oauthTokenColumns) AsSlice() []column {
|
||||
return []column{
|
||||
c.ID, c.AccessToken, c.AccessTokenExpires, c.RefreshToken, c.Username, c.UserID, c.ArcgisID, c.ArcgisLicenseTypeID, c.RefreshTokenExpires,
|
||||
c.ID, c.AccessToken, c.AccessTokenExpires, c.RefreshToken, c.Username, c.UserID, c.ArcgisID, c.ArcgisLicenseTypeID, c.RefreshTokenExpires, c.InvalidatedAt,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue