openid / openid/AppAuth-iOS

Facing the error - Issued at time is more than 600 seconds before or after the current time

Open
#618 13 comments 0 reactions 0 assignees View on GitHub

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:

  1. Download the example project
  2. Provide your issuer, client ID, redirect URI, and client secret
  3. Try to login
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.