-
-
Notifications
You must be signed in to change notification settings - Fork 638
Add offline JWT-based license validation system for React on Rails Pro #1857
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
Merged
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
e212492
Add offline JWT-based license validation system for React on Rails Pro
AbanoubGhadban e10775b
Add React on Rails Pro license file to .gitignore in multiple locations
AbanoubGhadban 0d4c982
add needed licence rake tasks
AbanoubGhadban 0f34eb2
Require exp field in license validation
AbanoubGhadban 2f4a185
Add tests for required exp field validation
AbanoubGhadban 4d6fe51
Require valid license in all environments (dev, test, prod)
AbanoubGhadban 570b01b
Add license validation on startup for both Rails and Node renderer
AbanoubGhadban ea79463
Change license field from 'license_type' to 'plan' and add 'issued_by…
AbanoubGhadban c0586c1
Remove obsolete license key file from the dummy config
AbanoubGhadban 76edca3
Add React on Rails Pro license file to .gitignore and Gemfile.lock
AbanoubGhadban 5b74c1e
Fix require statement in license validator spec to use spec_helper
AbanoubGhadban 7f2f088
update yarn.lock
AbanoubGhadban 8f8e88c
Fix license validator spec by stubbing Rails.logger and Rails.root
AbanoubGhadban 9650099
Fix Node.js license validator tests and disable auto-expiration check
AbanoubGhadban b11a3d9
Remove react_on_rails_pro_licence_valid? and consolidate to react_on_…
AbanoubGhadban 7beeb5c
Make react_on_rails_pro? actively validate license and remove backwar…
AbanoubGhadban 5deee18
Remove redundant 'before: :load_config_initializers' hook from licens…
AbanoubGhadban 3e01f71
Rename validation methods to use ! convention for exception-throwing
AbanoubGhadban fed1c36
Update license public key documentation and source URL
AbanoubGhadban 38ef270
Refactor license validation to remove unnecessary conditional logging
AbanoubGhadban 5d6514f
Refactor LicensePublicKey module documentation for clarity and consis…
AbanoubGhadban ab9801c
Refactor LicenseValidator to simplify validation logic and remove unn…
AbanoubGhadban fca96e4
Refactor Node.js license validator from singleton class to functional…
AbanoubGhadban 9299a24
Enhance license data structure and improve security in license valida…
AbanoubGhadban 27e585c
Refactor validateLicense to void function for clearer API semantics
AbanoubGhadban 37704eb
Enhance public key update task with local URL handling and add usage …
AbanoubGhadban 4a895c2
Enhance ReactOnRailsHelper spec by mocking additional utility methods…
AbanoubGhadban 6bd6eda
Enhance pro features context by allowing multiple message stubs for i…
AbanoubGhadban e1f167d
Enhance pro features context by adding support for RSC in immediate h…
AbanoubGhadban 05739bb
fix TS problems
AbanoubGhadban 9626ff2
Enhance license validation test by generating a separate key pair for…
AbanoubGhadban 118b9f1
Refactor license claims in JWT to use standard 'iss' identifier and u…
AbanoubGhadban 05b8615
Implement license expiration handling with a 1-month grace period for…
AbanoubGhadban 278b8dc
Add license attribution comment and refactor license validation metho…
AbanoubGhadban 5555b37
Refactor license validation methods to use 'validated_license_data!' …
AbanoubGhadban 58d680e
Add tests for react_on_rails_attribution_comment to verify Pro and op…
AbanoubGhadban 765cde1
Add tests for Pro and open source attribution comments in rendered ou…
AbanoubGhadban cf975c7
Add tests for single attribution comment inclusion in React on Rails …
AbanoubGhadban e480515
Refactor license evaluation logic and improve error handling for miss…
AbanoubGhadban 8b49a7a
Remove unnecessary setup in pro_attribution_comment tests for cleaner…
AbanoubGhadban b63a704
Stub ReactOnRailsPro::Utils.pro_attribution_comment for consistent te…
AbanoubGhadban b9c0c5b
Update tests to expect HTML comments instead of script tags for React…
AbanoubGhadban 125b364
Stub ReactOnRailsPro::Utils.pro_attribution_comment for consistent te…
AbanoubGhadban 895d92a
Update documentation to clarify license usage and add HTML comment at…
AbanoubGhadban d5b43a0
Refactor license validation logic to use getValidatedLicenseData and …
AbanoubGhadban b083a65
Update grace period message format to use "day(s)" for consistency in…
AbanoubGhadban File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
react_on_rails_pro_licence_valid?
has been removed, as the app should not start unless the license is valid. Therefore,react_on_rails_pro?
now checks for license validation.