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

SAML Auth Provider doesn't allow api tokens to authenticate

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Using an API token configured for a user doesn't allow access to the api e.g. accessing https://user:apitoken@jenkins/crumbIssuer/api/json causes a redirect to the saml auth provider instead of authenticating with the users apitoken.

        Attachments

          Activity

          Hide
          ifernandezcalvo Ivan Fernandez Calvo added a comment - - edited

          Which version of core and SAML plugin are you using? it should work on version upper than 0.14

          Show
          ifernandezcalvo Ivan Fernandez Calvo added a comment - - edited Which version of core and SAML plugin are you using? it should work on version upper than 0.14
          Hide
          jsharpe James Sharpe added a comment -

          1.0.7

          Show
          jsharpe James Sharpe added a comment - 1.0.7
          Hide
          ifernandezcalvo Ivan Fernandez Calvo added a comment -

          and Jenkins core?

          Show
          ifernandezcalvo Ivan Fernandez Calvo added a comment - and Jenkins core?
          Hide
          jsharpe James Sharpe added a comment -

          2.133 for Jenkins Core

          Show
          jsharpe James Sharpe added a comment - 2.133 for Jenkins Core
          Hide
          jsharpe James Sharpe added a comment -

          I've just regenerated the tokens under a user that authenticates with saml and it works now. The user for which it was failing was a user that wouldn't be authenticated via saml and was probably using a legacy api token.

          Show
          jsharpe James Sharpe added a comment - I've just regenerated the tokens under a user that authenticates with saml and it works now. The user for which it was failing was a user that wouldn't be authenticated via saml and was probably using a legacy api token.
          Hide
          ifernandezcalvo Ivan Fernandez Calvo added a comment -

          so it is resolved, right?

          Show
          ifernandezcalvo Ivan Fernandez Calvo added a comment - so it is resolved, right?
          Hide
          jsharpe James Sharpe added a comment -

          Yes, sorry for the noise

          Show
          jsharpe James Sharpe added a comment - Yes, sorry for the noise

            People

            • Assignee:
              ifernandezcalvo Ivan Fernandez Calvo
              Reporter:
              jsharpe James Sharpe
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: