Skip to content

Homework 06

Deadline 2022-04-10 23:59:59

Implement controller for user registration and login via rest api. Generate correct JWT and refresh token.

Implement token and refresh token renewal.

Return correctly formed (as in validation errors) error messages.
This is bad: return BadRequest($"Cant parse the token, {e.Message}");

Rewrite at least 3 rest api controllers to use correct identity attributes and verify on all operations that logged-in user can only work with its own resources (remove cookie auth support from these controllers).

Test everything via Postman (no cookies).