feat: add support for database cert, key, ca-cert

This commit is contained in:
Lakhan Samani
2022-04-23 17:52:02 +05:30
parent 4778827545
commit 075c287f34
12 changed files with 163 additions and 35 deletions

View File

@@ -174,7 +174,11 @@ func OAuthCallbackHandler() gin.HandlerFunc {
sessionstore.SetState(authToken.RefreshToken.Token, authToken.FingerPrint+"@"+user.ID)
}
go utils.SaveSessionInDB(c, user.ID)
go db.Provider.AddSession(models.Session{
UserID: user.ID,
UserAgent: utils.GetUserAgent(c.Request),
IP: utils.GetIP(c.Request),
})
if strings.Contains(redirectURL, "?") {
redirectURL = redirectURL + "&" + params
} else {