Generate real access token.

This commit is contained in:
Yang Luo
2021-03-14 22:48:09 +08:00
parent 1fd6ee388c
commit f014554415
8 changed files with 115 additions and 10 deletions

View File

@ -33,9 +33,10 @@ type Application struct {
Providers []string `xorm:"varchar(100)" json:"providers"`
ProviderObjs []*Provider `xorm:"-" json:"providerObjs"`
ClientId string `xorm:"varchar(100)" json:"clientId"`
ClientSecret string `xorm:"varchar(100)" json:"clientSecret"`
RedirectUrls []string `xorm:"varchar(1000)" json:"redirectUrls"`
ClientId string `xorm:"varchar(100)" json:"clientId"`
ClientSecret string `xorm:"varchar(100)" json:"clientSecret"`
RedirectUrls []string `xorm:"varchar(1000)" json:"redirectUrls"`
ExpireInHours int `json:"expireInHours"`
}
func GetApplications(owner string) []*Application {