Open sezabass opened 2 years ago
i also need this feature as i faced this issue recently, which can force me to change using this lib for authentication
please consider this enhancement
Oh, I think I am the only one who facing this problem. Thanks for more information to understand the exact problem.
However, We just need this one, too.
Also having this issue. remaining on an older version of this lib until it is fixed.
@stantronic what version are you using? I'm having this same issue.
Hi Still on 0.7.1 here. Looks like there haven't been any releases since 2021 though.
@PauloHFS we're stick on 0.7.1 until this gets fixed. We cant count on users having the correct time set on their phone
@brighthr-stanton I follow your choice and also fixed the version and we are in it waiting for the correction. I intend to get involved with this problem and if possible bring a solution in a PR when I have time. This problem affects the IOS version as well, in addition to affecting libraries that port both versions to javascript such as react-native-app-auth, which is very used.
Great. Let us know if and when you do that PR so we can vote on it :)
I am facing the same issue and it is not only at id token verification but also at the check if the access token is still valid. One possible solution to how this can be solved in a generic manner is to allow injecting a custom Clock instance. I know having the server time always sync on client side so I could potentially create such clock
It's me sep1972 you do know my account is still hacked do you??
From: Kamen Goranchev @.> Sent: 25 July 2023 21:47 To: openid/AppAuth-Android @.> Cc: Subscribed @.***> Subject: Re: [openid/AppAuth-Android] Parameter for setting an allowed clock skew / time difference (Issue #830)
I am facing the same issue and it is not only at id token verification but also at the check if the access token is still valid. One possible solution to how this can be solved in a generic manner is to allow injecting a custom Clock instance. I know having the server time always sync on client side so I could potentially create such clock
— Reply to this email directly, view it on GitHubhttps://github.com/openid/AppAuth-Android/issues/830#issuecomment-1650537739, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWZYHTITCTRRLNSQY7RMJK3XSAWEZANCNFSM5XLLA7PQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>
I created a fork where it is possible to change the allowed time skew for the ID token validation. As an additional change I also added an option to completely disable ID token issue time validation. The change itself follows a similar pattern to what was done for #662.
See https://github.com/Mardaneus86/AppAuth-Android/tree/idtoken-time-skew for the changes I made. Would this have any chance to get accepted as a PR? If so, I'm happy to create one for this.
Feature Request
Motivation
We use AppAuth on a released app, to provide authentication to its users. Some users complain that they just cannot log in, and it often happens because they do not have their phones' clocks synchronizing automatically. They typically have a client time that is at least a little different from the authentication server's, and the AppAuth plugin returns an error.
Description
A parameter that would now be available for setting a more (or less) permissive allowed time for OpenID Connect Core Section 3.1.3.7 rules #9 and #10. e.g:
One thing that is important to mention is that on OpenId's specs, the time is not determined, and in our case we wanted to make it a bit more permissive than
TEN_MINUTES_IN_SECONDS
.It will not break anything as the default behavior would be to keep the current behavior. The only drawback I can see here is maybe less security measures - but since this is an opt-in measure, we can assume that one that uses this knows what is being done.
Alternatives or Workarounds
We made this modification locally on a forked repo.
We wanted to know if a PR making this change would be accepted by the lib's maintainers and the community.