Retrieving tokens functionality is already implemented.
See luncher.auth module for more details
Using '/auth/token/' you can retrieve a required token.
Acceptance criteria:
- Application should retrieve 401 unauthorized when authorization header is missing.
- Create unit and integration tests.
- You should create decorator
@authorization_required to use in controller methods
- [optional] Token should be valid per only one hour.
In tests I prepared for you how valid request should work.
Retrieving tokens functionality is already implemented.
See
luncher.authmodule for more detailsUsing '/auth/token/' you can retrieve a required token.
Acceptance criteria:
@authorization_requiredto use in controller methodsIn tests I prepared for you how valid request should work.