-
Notifications
You must be signed in to change notification settings - Fork 543
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed: JWT Authentication Error (OFBIZ-12724)
Ensures the length of the secret is at least 512 bit long https://www.rfc-editor.org/rfc/rfc7518#page-7 https://javadoc.io/doc/com.auth0/java-jwt/latest/com/auth0/jwt/algorithms/Algorithm.html#HMAC512 We should follow the rule and give a 512 bit key by default and provide validation based on the same rule. jleroux: based on recommendation by Les Hazlewood (JJWT founder, Apache Shiro founder): jhipster/generator-jhipster#8165 (comment) I used a 512 bits key I created using https://www.allkeysgenerator.com (Encryption key mode). But I got this error: EntitySaxReader |E| Fatal Error reading XML on line 23, column 155 org.xml.sax.SAXParseException: The reference to entity "F" must end with the ';' delimiter. It was due to SSOJWTDemoData content. So I removed security.token.key from this file and used only the property in security.properties. Thanks: Ayan Farooqui for report and suggestion
- Loading branch information
1 parent
b6e202b
commit 55b603e
Showing
4 changed files
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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 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 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 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