Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post endpoints always check for token (ROPC) #45

Open
conryf opened this issue Jan 29, 2017 · 0 comments
Open

Post endpoints always check for token (ROPC) #45

conryf opened this issue Jan 29, 2017 · 0 comments

Comments

@conryf
Copy link

conryf commented Jan 29, 2017

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!"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant