{"id":25948112,"url":"https://github.com/pauldijou/jwt-scala","last_synced_at":"2025-03-04T11:01:46.591Z","repository":{"id":20510085,"uuid":"23788721","full_name":"jwt-scala/jwt-scala","owner":"jwt-scala","description":"JWT support for Scala. Bonus extensions for Play, Play JSON, Json4s, Circe, uPickle, Spray and Argonaut","archived":false,"fork":false,"pushed_at":"2024-11-18T15:34:49.000Z","size":5451,"stargazers_count":675,"open_issues_count":25,"forks_count":141,"subscribers_count":15,"default_branch":"main","last_synced_at":"2024-11-30T09:42:19.953Z","etag":null,"topics":["jwt","jwt-scala","scala"],"latest_commit_sha":null,"homepage":"https://jwt-scala.github.io/jwt-scala/","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jwt-scala.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-09-08T11:43:02.000Z","updated_at":"2024-11-25T17:32:23.000Z","dependencies_parsed_at":"2023-02-14T15:16:19.056Z","dependency_job_id":"c6973866-51a1-420b-ab35-cc92447b0c93","html_url":"https://github.com/jwt-scala/jwt-scala","commit_stats":null,"previous_names":["pauldijou/jwt-scala"],"tags_count":77,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwt-scala%2Fjwt-scala","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwt-scala%2Fjwt-scala/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwt-scala%2Fjwt-scala/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwt-scala%2Fjwt-scala/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwt-scala","download_url":"https://codeload.github.com/jwt-scala/jwt-scala/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241836205,"owners_count":20028150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jwt","jwt-scala","scala"],"created_at":"2025-03-04T11:01:11.673Z","updated_at":"2025-03-04T11:01:46.579Z","avatar_url":"https://github.com/jwt-scala.png","language":"Scala","funding_links":[],"categories":["Libraries"],"sub_categories":["Security/Authentification","Scala"],"readme":"# JWT Scala\n\nScala support for JSON Web Token ([JWT](http://tools.ietf.org/html/draft-ietf-oauth-json-web-token)).\nSupports Java 8+, Scala 2.12, Scala 2.13 and Scala 3 (for json libraries that support it).\nDependency free.\nOptional helpers for Play Framework, Play JSON, Json4s Native, Json4s Jackson, Circe, uPickle and Argonaut.\n\n[Contributor's guide](https://github.com/jwt-scala/jwt-scala/blob/main/CONTRIBUTING.md)\n\n## Usage\n\nDetailed documentation is on the [Microsite](https://jwt-scala.github.io/jwt-scala).\n\nJWT Scala is divided in several sub-projects each targeting a specific JSON library,\ncheck the doc from the menu of the Microsite for installation and usage instructions.\n\n## Algorithms\n\nIf you are using `String` key, please keep in mind that such keys need to be parsed. Rather than implementing a super complex parser, the one in JWT Scala is pretty simple and might not work for all use-cases (especially for ECDSA keys). In such case, consider using `SecretKey` or `PrivateKey` or `PublicKey` directly. It is way better for you. All API support all those types.\n\nCheck [ECDSA samples](https://jwt-scala.github.io/jwt-scala/jwt-core-jwt-ecdsa.html) for more infos.\n\n| Name  | Description                    |\n| ----- | ------------------------------ |\n| HMD5  | HMAC using MD5 algorithm       |\n| HS224 | HMAC using SHA-224 algorithm   |\n| HS256 | HMAC using SHA-256 algorithm   |\n| HS384 | HMAC using SHA-384 algorithm   |\n| HS512 | HMAC using SHA-512 algorithm   |\n| RS256 | RSASSA using SHA-256 algorithm |\n| RS384 | RSASSA using SHA-384 algorithm |\n| RS512 | RSASSA using SHA-512 algorithm |\n| ES256 | ECDSA using SHA-256 algorithm  |\n| ES384 | ECDSA using SHA-384 algorithm  |\n| ES512 | ECDSA using SHA-512 algorithm  |\n| EdDSA | EdDSA signature algorithms     |\n\n## Security concerns\n\nThis lib doesn't want to impose anything, that's why, by default, a JWT claim is totally empty. That said, you should always add an `issuedAt` attribute to it, probably using `claim.issuedNow`.\nThe reason is that even HTTPS isn't perfect and having always the same chunk of data transfered can be of a big help to crack it. Generating a slightly different token at each request is way better even if it adds a bit of payload to the response.\nIf you are using a session timeout through the `expiration` attribute which is extended at each request, that's fine too. I can't find the article I read about that vulnerability but if someone has some resources about the topic, I would be glad to link them.\n\n## License\n\nThis software is licensed under the Apache 2 license, quoted below.\n\nCopyright 2021 JWT-Scala Contributors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this project except in compliance with the License. You may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0).\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpauldijou%2Fjwt-scala","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpauldijou%2Fjwt-scala","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpauldijou%2Fjwt-scala/lists"}