Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3933

Wrong error message when bad credentials with JMAP

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.8.0
    • 3.9.0
    • None
    • None

    Description

      When trying to send a request with BasicAuth on JMAP for example, and Basic auth strategy is enabled, and the creds are wrong, we get this message:

      ```

      {     "type": "about:blank",     "status": 401,     "detail": "No valid authentication methods provided" }

      ```
      The detail message is wrong. This normally shows if we are trying to authenticate with a non supported or disabled authentication strategy (like if Basic auth strategy was off and you try to login with basicauth). 

      The message if using a supported auth method but wrong creds should be different, more like: "Wrong credentials provided"..?

      Investigate and fix the issue.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rcordier René Cordier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h