mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
OIDC: Remove provider access and refresh token from session #782
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
11e5246e33
commit
5546a56183
1 changed files with 0 additions and 4 deletions
|
|
@ -315,11 +315,7 @@ func OIDCRedirect(router *gin.RouterGroup) {
|
|||
sess.SetAuthID(user.AuthID)
|
||||
sess.SetUser(user)
|
||||
sess.SetGrantType(authn.GrantAuthorizationCode)
|
||||
|
||||
// Set identity provider tokens.
|
||||
sess.IdToken = tokens.IDToken
|
||||
sess.AccessToken = tokens.AccessToken
|
||||
sess.RefreshToken = tokens.RefreshToken
|
||||
|
||||
// Set session expiration and timeout.
|
||||
sess.SetExpiresIn(unix.Day)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue