If you havenβt yet, sign up for Hacktoberfest to earn an exclusive T-Shirt. Plus Iβm sure we can teach you a cool trick or two in the process
π€ What you will need to know
You should have worked with JavaScript, Node.js and Testing. This is a rather advanced issue, you will need to write tests yourself and then resolve the issue. If you havenβt done that before, better look for another issue :)
Some knowledge about Hapi will help but you can figure it out if you know the things above :)
π The Bug
Requests like GET /accounts require a valid session. The server validates the session by parsing the authorization request header.
As defined in the Account JSON API Spec, the server should respond with 401 Unauthorized β Authorization header missing instead of 403.
:dart: The goal
As defined in the Account JSON API Spec, the server should respond with 401 Unauthorized β Session invalid. It probably does that already but we canβt be sure unless we have a test for it :)
:clipboard: Step by Step
If this is your first, welcome :tada: :smile: Here is a great tutorial on how to send a pull request using the terminal.
[x] π Claim this issue: @simonyangme (Note: Fullstack LA Hacktoberfest Edition attendees only) Comment below (or assign yourself and continue at step 4 :)
Please π only claim if you want to start working on it during the event.
Once claimed we add you as contributor to this repository.
[x] π Accept our invitation to this repository. Once accepted, assign yourself to this repository
[x] π Please review our Code of Conduct
In a nutshell: be patient and actively kind with us π
[x] Commit the change with test(routes): GET /accounts with invalid session and push it either to your fork or push your new branch. Your tests should fail now
[x] π Start a Pull Request. Mention closes hoodiehq/camp#62 in the description.
[x] If the test passes, all good π If the server does not respond as expected, figure out why and fix it π
[x] π Done :+1: Replace the in progress label with ready. Ask in comments for a review :)
ππ»π Hacktoberfest: Trick or Treat!
If you havenβt yet, sign up for Hacktoberfest to earn an exclusive T-Shirt. Plus Iβm sure we can teach you a cool trick or two in the process
π€ What you will need to know
You should have worked with JavaScript, Node.js and Testing. This is a rather advanced issue, you will need to write tests yourself and then resolve the issue. If you havenβt done that before, better look for another issue :)
Some knowledge about Hapi will help but you can figure it out if you know the things above :)
π The Bug
Requests like
GET /accounts
require a valid session. The server validates the session by parsing theauthorization
request header.As defined in the Account JSON API Spec, the server should respond with
401 Unauthorized β Authorization header missing
instead of403
.:dart: The goal
As defined in the Account JSON API Spec, the server should respond with
401 Unauthorized β Session invalid
. It probably does that already but we canβt be sure unless we have a test for it :):clipboard: Step by Step
If this is your first, welcome :tada: :smile: Here is a great tutorial on how to send a pull request using the terminal.
Please π only claim if you want to start working on it during the event.
Once claimed we add you as contributor to this repository.
In a nutshell: be patient and actively kind with us π
in progress
.test(routes): GET /accounts with invalid session
and push it either to your fork or push your new branch. Your tests should fail nowcloses hoodiehq/camp#62
in the description.in progress
label withready
. Ask in comments for a review :)π€β Questions
Ping us in the Hoodie Chat or on Twitter