Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37840

Cope with timed out JWT token

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Major Major
    • blueocean-plugin
    • None

      (sorry if this is a dupe, but thought I would open it).

      The session should be refreshed if timed out.

      I left a tab open for a while and see failures as JWT token was not renewed:

      EVERE: Invalid JWT token: JWT (claims->{"jti":"08e42c55c43b497f9461be53a8b5a52f","iss":"blueocean-jwt:1.0-alpha-10-SNAPSHOT (private-1b426ba9-michaelneale)","sub":"admin","name":"mic","iat":1472616178,"exp":1472617978,"nbf":1472616148,"context":{"user":{"id":"admin","fullName":"mic","email":"mic@bar.com"}}}) rejected due to invalid claims. Additional details: [The JWT is no longer valid - the evaluation time NumericDate{1472626557 -> 31/08/2016 4:55:57 PM} is on or after the Expiration Time (exp=NumericDate{1472617978 -> 31/08/2016 2:32:58 PM}) claim value (even when providing 30 seconds of leeway to account for clock skew).]
      org.jose4j.jwt.consumer.InvalidJwtException: JWT (claims->{"jti":"08e42c55c43b497f9461be53a8b5a52f","iss":"blueocean-jwt:1.0-alpha-10-SNAPSHOT (private-1b426ba9-michaelneale)","sub":"admin","name":"mic","iat":1472616178,"exp":1472617978,"nbf":1472616148,"context":{"user":{"id":"admin","fullName":"mic","email":"mic@bar.com"}}}) rejected due to invalid claims. Additional details: [The JWT is no longer valid - the evaluation time NumericDate{1472626557 -> 31/08/2016 4:55:57 PM} is on or after the Expiration Time (exp=NumericDate{1472617978 -> 31/08/2016 2:32:58 PM}) claim value (even when providing 30 seconds of leeway to account for clock skew).]
      

      Refreshing the page actually logged me in (I didn't have to login via the form in this case).

            imeredith Ivan Meredith
            michaelneale Michael Neale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: