This commit is contained in:
parent
ffb70e9879
commit
9bcfff5627
|
@ -24,7 +24,7 @@ import (
|
|||
|
||||
// OAuth2BlockedJTI contains all JTI signatures for already assigned JWT tokens
|
||||
type OAuth2BlockedJTI struct {
|
||||
Signature string `xorm:"pk not null"`
|
||||
Signature string `xorm:"varchar(64) pk not null"`
|
||||
ExpiresAt *time.Time
|
||||
}
|
||||
|
||||
|
|
|
@ -26,11 +26,11 @@ import (
|
|||
|
||||
// OAuth2Client represents a third party application used the authenticate with Vikunja
|
||||
type OAuth2Client struct {
|
||||
ClientID string `xorm:"pk not null"`
|
||||
ClientID string `xorm:"varchar(36) pk not null"`
|
||||
ClientSecret []byte
|
||||
RedirectURIs []string
|
||||
GrantTypes []string
|
||||
ResponseTypes []string
|
||||
RedirectURIs []string `xorm:"redirect_uris"`
|
||||
GrantTypes []string `xorm:"grant_types"`
|
||||
ResponseTypes []string `xorm:"response_types"`
|
||||
Public bool
|
||||
|
||||
User *user.User `xorm:"-"`
|
||||
|
|
Loading…
Reference in New Issue
Block a user