Uploaded image for project: 'Nuxeo JS Client'
  1. Nuxeo JS Client
  2. NXJS-142

Handle errors when fetching an oauth2 token

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Browser, Node.js
    • Tags:
    • Story Points:
      2

      Description

      oauth2#fetchAccessToken does not handle errors for HTTP status code != 2xx.

      It should reject when getting a status code != 200, like what is done in nuxeo#http.

      Check also other code using directly fetch to fix it if needed.

        Attachments

          Activity

            People

            • Assignee:
              troger Thomas Roger
              Reporter:
              troger Thomas Roger
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: