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

Restarting server (or letting session timeout) will cause hidden auth failures rather than trigger reauth

    • 1.0-pre-beta-1, pacific

      To reproduce:

          [JENKINS-36941] Restarting server (or letting session timeout) will cause hidden auth failures rather than trigger reauth

          Michael Neale added a comment -

          I think this may be related to JWT stuff right vivek ? or at least needs to wait until it lands, so that the GUI can respond accordingly.

          Michael Neale added a comment - I think this may be related to JWT stuff right vivek ? or at least needs to wait until it lands, so that the GUI can respond accordingly.

          Michael Neale added a comment -

          I can see similar things by using stock jenkins auth, and letting it timeout after 30 minutes or so.

          Michael Neale added a comment - I can see similar things by using stock jenkins auth, and letting it timeout after 30 minutes or so.

          Vivek Pandey added a comment -

          JWT support is still being worked on, nothing related to it is on master yet. Anyways, not sure whats expected in this ticket. Triggering re-auth is beyond scope of blueocean API, its proper jenkins thing.

          Once we have JWT support, token expiry can be reported in consistent fashion and blueocean UI can trigger auth redirect based on error code. More on this when JWT support is in, it will still be something in UI layer to trigger re-auth etc. not in API.

          Vivek Pandey added a comment - JWT support is still being worked on, nothing related to it is on master yet. Anyways, not sure whats expected in this ticket. Triggering re-auth is beyond scope of blueocean API, its proper jenkins thing. Once we have JWT support, token expiry can be reported in consistent fashion and blueocean UI can trigger auth redirect based on error code. More on this when JWT support is in, it will still be something in UI layer to trigger re-auth etc. not in API.

          Michael Neale added a comment -

          Are there JWT tickets this is a duplicate of?

          I am not sure if JWT is a pre-req for beta (jamesdumay?) , but without it, we need a slightly better strategy to at least keep sessions alive, or detect some common scenarios so that the "leave a browser open" experience isn't broken.

          Michael Neale added a comment - Are there JWT tickets this is a duplicate of? I am not sure if JWT is a pre-req for beta ( jamesdumay ?) , but without it, we need a slightly better strategy to at least keep sessions alive, or detect some common scenarios so that the "leave a browser open" experience isn't broken.

          Vivek Pandey added a comment -

          https://issues.jenkins-ci.org/browse/JENKINS-35783 is where JWT work is happening. I got pulled in to rollbar thing so its more or less in hold state. I expect to get some help from Tom to convert rollbar JS code as js-builder bundler tomorrow to get that wrapped up. If not this week, early next week I should have JWT PR in.

          Vivek Pandey added a comment - https://issues.jenkins-ci.org/browse/JENKINS-35783 is where JWT work is happening. I got pulled in to rollbar thing so its more or less in hold state. I expect to get some help from Tom to convert rollbar JS code as js-builder bundler tomorrow to get that wrapped up. If not this week, early next week I should have JWT PR in.

          James Dumay added a comment -

          This is in scope to fix for the beta - it's a common use case as of Jenkins 2 to have security enabled

          James Dumay added a comment - This is in scope to fix for the beta - it's a common use case as of Jenkins 2 to have security enabled

          Vivek Pandey added a comment -

          michaelneale right, UI should force login if APIs are returning 403 for anonymous user. it should be closed as duplicate of https://issues.jenkins-ci.org/browse/JENKINS-35783?

          Vivek Pandey added a comment - michaelneale right, UI should force login if APIs are returning 403 for anonymous user. it should be closed as duplicate of https://issues.jenkins-ci.org/browse/JENKINS-35783?

          Michael Neale added a comment -

          May be fixed by JWT... lets see

          Michael Neale added a comment - May be fixed by JWT... lets see

          Michael Neale added a comment -

          This is fixed with the reload on 40X thing Ivan did. So closing it. Effectively a dupe.

          Michael Neale added a comment - This is fixed with the reload on 40X thing Ivan did. So closing it. Effectively a dupe.

            vivek Vivek Pandey
            michaelneale Michael Neale
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: