Facing the error - Issued at time is more than 600 seconds before or after the current time
Nobody has claimed this yet.
- Dominant language
- Objective-C
- Stars
- 2k
- Forks
- 867
- Avg merge
- 4d 48m
- Merged PRs (30d)
- 1
Description
Describe the bug
When I try to authenticate against an authorization server, I am getting this error Error Domain=org.openid.appauth.general Code=-15 "Issued at time is more than 600 seconds before or after the current time" UserInfo={NSLocalizedDescription=Issued at time is more than 600 seconds before or after the current time}
The device's date and time are set properly.
It was working properly for some time and now all of a sudden this error occurs
To Reproduce
Steps to reproduce the behavior:
- Download the example project
- Provide your issuer, client ID, redirect URI, and client secret
- Try to login
- It logs in but in the call back, we get the error
Error Domain=org.openid.appauth.general Code=-15 "Issued at time is more than 600 seconds before or after the current time" UserInfo={NSLocalizedDescription=Issued at time is more than 600 seconds before or after the current time}
Expected behavior
The accesstoken should be available.
Smartphone (please complete the following information):
- Device: iPhone 12 mini simulator
- OS: macOS BigSur, M1
- Xcode Version 12.5 beta
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the example project and reproduce the authentication flow on the reported iPhone simulator and macOS/Xcode setup. Inspect the callback handling around the issued-at validation and compare the token timing with the device clock; done means identifying a reproducible cause and confirming the access token becomes available without this error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- objective-c
- Domain
- authentication, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100