Closed kierancott closed 4 years ago
Commit https://github.com/develop-me/bagajob/pull/42/commits/ee491d805cecd146b292fd2ccf8327c06a1dfc17
Update:
user_id
is now used correctly in the URL:
Todo:
Bearer token is not being correctly generated from user_id
Commit https://github.com/develop-me/bagajob/pull/42/commits/e09682b977347eefbc961bd925a35025ee07e000
Action:
Bearer token has been added to the header of the request.
Result:
422 - Unprocessable Entity : API is no longer returning an authorisation error. Bearer token correctly used in header.
Issue closed in error - implies no action was taken.
Issue was resolved on user_account_page_and_auth_functionality
branch by commit https://github.com/develop-me/bagajob/commit/e09682b977347eefbc961bd925a35025ee07e000.
However, these changes have yet to be merged, and will be resolved by PR https://github.com/develop-me/bagajob/pull/42.
Issue will remain open until closed by merge of PR https://github.com/develop-me/bagajob/pull/42 into development
.
Issue:
Upon adding a single job (
POST api/user/user_id/jobs
), the API returns 401 unauthorised. This is because theuser_id
in the request - and thus also in the Authorisation header - isundefined
.Action:
Correctly retrieve
user_id
from state to be used in API request.