WIP: Begin OAuth2 implementation #598

Closed
JonasFranz wants to merge 9 commits from feature/oauth2 into master
2 changed files with 5 additions and 5 deletions
Showing only changes of commit 9bcfff5627 - Show all commits

View File

@ -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
}

View File

@ -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:"-"`