Add support to login using identity from an identity-aware proxy #715
|
@ -216,7 +216,7 @@ func RenewToken(s *xorm.Session, c echo.Context) (token string, err error) {
|
|||
}
|
||||
share := &models.LinkSharing{}
|
||||
share.ID = oldShare.ID
|
||||
err = share.ReadOne(s)
|
||||
err = share.ReadOne(s, share)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@ import (
|
|||
"code.vikunja.io/api/pkg/log"
|
||||
"code.vikunja.io/api/pkg/models"
|
||||
"code.vikunja.io/api/pkg/modules/auth"
|
||||
"code.vikunja.io/api/pkg/user"
|
||||
"github.com/coreos/go-oidc"
|
||||
"github.com/labstack/echo/v4"
|
||||
"golang.org/x/oauth2"
|
||||
|
|
Loading…
Reference in New Issue