Skip to content

Commit

Permalink
Merge pull request #10783 from camptocamp/backport/10780-to-2.8
Browse files Browse the repository at this point in the history
[Backport 2.8] The expiration is for the access token, not for the refresh token
  • Loading branch information
sbrunner authored Oct 24, 2023
2 parents dc4937b + 695c696 commit 1e41dc3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion geoportal/c2cgeoportal_geoportal/lib/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,6 @@ def validate_refresh_token(
DBSession.query(static.OAuth2BearerToken)
.filter(static.OAuth2BearerToken.refresh_token == refresh_token)
.filter(static.OAuth2BearerToken.client_id == request.client.id)
.filter(static.OAuth2BearerToken.expire_at > datetime.now())
.one_or_none()
)

Expand Down

0 comments on commit 1e41dc3

Please sign in to comment.