Skip to content

Fixes #1318 by multiplying decreaseExpirationBySec with 1000. Also fixes returning true for calling hasValidAccessToken on tokens which are already expired#1374

Open
IchbinkeinReh wants to merge 1 commit into
manfredsteyer:masterfrom
IchbinkeinReh:master
Open

Fixes #1318 by multiplying decreaseExpirationBySec with 1000. Also fixes returning true for calling hasValidAccessToken on tokens which are already expired#1374
IchbinkeinReh wants to merge 1 commit into
manfredsteyer:masterfrom
IchbinkeinReh:master

Conversation

@IchbinkeinReh

Copy link
Copy Markdown

In the "expires_at" is set and its calculated with local clock (see https://github.com/manfredsteyer/angular-oauth2-oidc/blob/15.0.0/projects/lib/src/oauth-service.ts#L1698 ). Therefore there is no need to appy clockSkewInMsec in hasValidAccessToken

@IchbinkeinReh

IchbinkeinReh commented Dec 4, 2023

Copy link
Copy Markdown
Author

@manfredsteyer or @jeroenheijmans Could you please have a look at this PR, because i think the part with the "expires_at" is rather critical

@jeroenheijmans

Copy link
Copy Markdown
Collaborator

Heya! FYI: I'm no longer very active as a maintainer or community moderator (see #1280), so I will likely not be investigating or reviewing. But thanks for submitting a fix to this Open Source project, hopefully Manfred or another contributor can find time to help out!

@IchbinkeinReh

Copy link
Copy Markdown
Author

@manfredsteyer sry for bumping, but i think this is a big issue and should be fixed asap

@bkrajendra

Copy link
Copy Markdown

Need to be merged.

@L-X-T L-X-T force-pushed the master branch 4 times, most recently from a54ea92 to 078415b Compare December 2, 2024 12:32
@L-X-T L-X-T force-pushed the master branch 2 times, most recently from e1fc6c5 to 5d10af2 Compare June 30, 2025 12:18
@vilmantasbaranauskas

vilmantasbaranauskas commented May 4, 2026

Copy link
Copy Markdown

The PR fixes 2 occurrences of decreaseExpirationBySec but there are 3 occurrences on current master.

👍 to merge it.

…1000. Also fixes wrong subtraction of getClockSkewInMsec

Signed-off-by: Patrick Bender <Patrick.Bender@softgarden.de>
@IchbinkeinReh

Copy link
Copy Markdown
Author

The PR fixes 2 occurrences of decreaseExpirationBySec but there are 3 occurrences on current master.

👍 to merge it.

Thx. I just rebased to latest master and also fixed the third occurence

@vilmantasbaranauskas vilmantasbaranauskas left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR looks correct to me.

@L-X-T L-X-T force-pushed the master branch 2 times, most recently from 1421146 to 4dff3c3 Compare June 11, 2026 07:23
@L-X-T L-X-T force-pushed the master branch 5 times, most recently from 581dc7a to 328e014 Compare June 26, 2026 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants