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

Add token decoding functionality to login/registration views #153

Merged
merged 1 commit into from
Mar 5, 2020

Conversation

Fahminajjar
Copy link
Contributor

Description

We have a bug related to login and registration (Logistration) for old devices so I enhanced the Logistration process by encrypting the form (login/registration) data using a shared secret key between the frontend and the server to JSON Web Token, then the server decrypts the token and takes the form data from it.

We already developed this enhancement on edx-platform (Dogwood) so I just rewrote the enhancement here for the Hawthorn version to make it ready for this change after the deployment.

@Fahminajjar Fahminajjar requested review from Salomari1987 and a user March 3, 2020 10:25
@Fahminajjar Fahminajjar self-assigned this Mar 3, 2020
@ghost ghost requested a review from shadinaif March 3, 2020 14:38
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Thanks @Fahminajjar, if it's already in the Dogwood then I think we can can add it here as well.

Additionally, I have a couple of concerns that we probably should address in the near future:

  • This PR has a couple of inline changes that would make it difficult to manage in future releases.
  • Adding tests would make future merges easier to verify. This is a good mitigation even if it doesn't make them go away.
  • I still need more background about the nature of the issue we're solving, but my initial though is that we could use "encoding" instead of a shared-key "encryption".

I created a follow up GitHub issue so we get to merge this and then address the notes after the deployment.

@devalih devalih merged commit 0b43609 into master Mar 5, 2020
@ghost ghost deleted the logistration/decode-token branch March 6, 2020 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants