feature:Save OIDC setting in DB (TODO: support multiple profile)

This commit is contained in:
2024-09-30 12:12:46 +07:00
parent 7c56d5865c
commit f89d096bc2
7 changed files with 102 additions and 16 deletions
+3 -1
View File
@@ -7,7 +7,9 @@ type AuthentikCredentialsDBModel struct {
Id int `gorm:"column:id;primary_key" json:"id"`
ClientID string `json:"clientId"`
ClientSecret string `json:"clientSecret"`
Server string `json:"server"`
Issuer string `json:"issuer"`
AuthUrl string `json:"authUrl"`
CallbackUrl string `json:"callbackUrl"`
CreatedAt time.Time `gorm:"<-:create;autoCreateTime" json:"created_at,omitempty"`
UpdatedAt time.Time `gorm:"<-:create;<-:update;autoUpdateTime" json:"updated_at,omitempty"`
}