Skip to content

Post endpoints always check for token (ROPC) #45

@conryf

Description

@conryf

The framework will always check for a token on POST requests. Here is an example:

app.post('/user/create', userCreate);
app.get('/user/create', userCreate);

function userCreate(req, res) {
     res.json({json:'Jay SON'});
     return;
}

The get requests returns correctly, the post request returns the following:

{
  "code": "BadRequestError",
  "message": "Bearer token required. Follow the oauth2-token link to get one!"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions