Skip to content
This repository was archived by the owner on Apr 12, 2023. It is now read-only.

JWT authentication for users and cert issuers - #33

Open
junron wants to merge 8 commits into
JBossOutreachArchive:masterfrom
junron:jwt-auth
Open

JWT authentication for users and cert issuers#33
junron wants to merge 8 commits into
JBossOutreachArchive:masterfrom
junron:jwt-auth

Conversation

@junron

@junron junron commented Nov 9, 2018

Copy link
Copy Markdown
Contributor

GCI task

  • Create users and save to database
  • Permission to issue certificates
  • JWT expiration and issuance data
  • Add tests
    • Test API endpoints using HTTP
  • Use CreateAPIView instead of APIView

@jatinkatyal13 jatinkatyal13 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Convert the view to CreateAPIView! other then that awesome work 🚀

@junron junron changed the title WIP: JWT authentication for users and cert issuers JWT authentication for users and cert issuers Nov 10, 2018
@junron

junron commented Nov 10, 2018

Copy link
Copy Markdown
Contributor Author

I've fixed the changes requested

@junron

junron commented Nov 10, 2018

Copy link
Copy Markdown
Contributor Author

Would appreciate if @jatinkatyal13 or @aashutoshrathi could review my PR, thanks

@aashutoshrathi aashutoshrathi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

@jatinkatyal13 jatinkatyal13 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice Work ! These two changes would make this PR perfect !

Comment thread api/views.py Outdated
Comment thread requirements.txt
@junron

junron commented Nov 11, 2018

Copy link
Copy Markdown
Contributor Author

Hi, @jatinkatyal13 and @aashutoshrathi could you have a look again

@jatinkatyal13

Copy link
Copy Markdown
Collaborator

Awesome 🚀

@aashutoshrathi aashutoshrathi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check comments

Comment thread api/tests.py

@aashutoshrathi aashutoshrathi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just resolve these ones and we are GTG

Comment thread api/tests.py
def test(self):
# Run tests in correct order
self.create_cert_student_user()
self.authenticate_cert_student_user() No newline at end of file

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add newline and make sure you are following PEP8

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added newline and split some lines to keep within 79 character limit

Comment thread api/views.py
@jatinkatyal13

Copy link
Copy Markdown
Collaborator

Awesome work now you can submit the task on code-in dashboard 🚀

@junron

junron commented Nov 11, 2018

Copy link
Copy Markdown
Contributor Author

I forgot about that 😂

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants