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

Complete authentication and authorization strategies #8

Closed
RobertoPrevato opened this issue May 29, 2020 · 0 comments · Fixed by #18
Closed

Complete authentication and authorization strategies #8

RobertoPrevato opened this issue May 29, 2020 · 0 comments · Fixed by #18
Projects

Comments

@RobertoPrevato
Copy link
Contributor

RobertoPrevato commented May 29, 2020

  • Implement JWT Bearer authentication in a single place in code, for example in a Express.js middleware (in such case, add integration with Express.js)
  • Complete the piece of code that, following a redirect from GitHub after successful login in the Admin login page, validates that the person is an administrator by verified email address
    • display an error page to unauthorized users
    • create a JWT token used and validated by the same application
    • redirect authorized admins to the admin page
    • include JWT token as Authorization: Bearer <token> header in API requests
  • Implement authorization function decorator, so that API routes can be decorated this way:
@auth()
async def example(res, req): Promise<...> {

}
  • decorate functions that require authorization
@1st1 1st1 added this to All tasks (release on: July 13th) in Alpha 4 via automation May 29, 2020
@1st1 1st1 moved this from All tasks (release on: July 13th) to Complete before June 14th in Alpha 4 Jun 1, 2020
@RobertoPrevato RobertoPrevato moved this from Complete before June 14th to In progress in Alpha 4 Jun 1, 2020
Alpha 4 automation moved this from In progress to Done Jun 6, 2020
RobertoPrevato added a commit that referenced this issue Jun 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Alpha 4
  
Done
Development

Successfully merging a pull request may close this issue.

1 participant