X Tutup
Skip to content

Refactoring #565

Closed
iarshtejay wants to merge 10 commits intoauth0:masterfrom
iarshtejay:master
Closed

Refactoring #565
iarshtejay wants to merge 10 commits intoauth0:masterfrom
iarshtejay:master

Conversation

@iarshtejay
Copy link
Copy Markdown

Changes

Hi! Did a refactoring of some of the code. Please have a look and accept my pull request. If you'd like some more changes, I am happy to incorporate them. This is my first contribution to open source. Appreciate your feedback.

An overview of the changes I did:

  • Rename a variable "parser" -> "jwtParser" in JWT.java
  • Extracted a method from a long code block, and created a new method named "isAValidClaimsObject()"
  • Introduced an interface "ExpectedClaimType" and implemented "Factory Pattern" to replace the switch case in JWTVerifier.java
  • Added new abstractions for the new switch case classes I introduced

References

Testing

No new functionality was introduced. Only refactoring, so no new test cases were introduced. All the existing test cases are passing.

Checklist

@iarshtejay iarshtejay requested a review from a team as a code owner March 25, 2022 18:32
@poovamraj
Copy link
Copy Markdown
Contributor

Hi @iarshtejay! We really value the effort you have put in for us. Unfortunately, as you can see in our branch v4-dev, We are working on a new major where many of the code you have refactored here is completely revamped. Since merging this not be suitable right now (There will be a lot of conflicts), we might have to close this PR. We will welcome any feedback you can provide to us on v4-dev branch, and we can guide you on creating a PR for them as well.

Hope this doesn't discourage you from contributing to open-source which is very valuable work you can do for the community. Looking forward to more contributions from you.

@poovamraj poovamraj closed this Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup