{"id":16685114,"url":"https://github.com/anthonycastelli/vapor-jwtauthorization","last_synced_at":"2025-03-21T18:33:00.107Z","repository":{"id":68624284,"uuid":"73584827","full_name":"anthonycastelli/Vapor-JWTAuthorization","owner":"anthonycastelli","description":"Vapor JWT Authorization","archived":false,"fork":false,"pushed_at":"2017-06-02T20:37:32.000Z","size":74,"stargazers_count":45,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-18T03:51:29.098Z","etag":null,"topics":["authentication","jwt","jwt-authentication","swift","vapor"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anthonycastelli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2016-11-12T23:35:31.000Z","updated_at":"2022-07-03T12:20:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"7393ee35-f82a-4e1e-aebb-b0dba65953e9","html_url":"https://github.com/anthonycastelli/Vapor-JWTAuthorization","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonycastelli%2FVapor-JWTAuthorization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonycastelli%2FVapor-JWTAuthorization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonycastelli%2FVapor-JWTAuthorization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonycastelli%2FVapor-JWTAuthorization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthonycastelli","download_url":"https://codeload.github.com/anthonycastelli/Vapor-JWTAuthorization/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244849207,"owners_count":20520667,"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":["authentication","jwt","jwt-authentication","swift","vapor"],"created_at":"2024-10-12T14:46:05.777Z","updated_at":"2025-03-21T18:33:00.080Z","avatar_url":"https://github.com/anthonycastelli.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Generate JWT key\n```\nssh-keygen -t rsa -b 2048 -f jwtRS256.key\n# Don't add passphrase\nopenssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub\ncat jwtRS256.key\n```\nIt will print something like this\n```\n-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEA2MBhga9j06SCZcYr9JLfQg3TnUZnJfN6fl5c/nAoTx8kv/iV\nP2EtxQt89KcXyKNLnl2z5HQfQgAGnioPkDHcqd2XVyNxxXa2DAtfL34EeNnl/4gV\n6WXPw6hZ8s2X+OkTTTStqdxfgtxXCKbRRcOBTJa/F3eY9jBW16jujygkyt+WwD28\nXcQSs4enLhHOyljslhLv6ebqJ3cNI7+j3St4JYmB+SAAK2di1tzU2OaMlcUo7bEt\nyqzDiZKsXBtLKTBVQ9TbwFiFQ+9IfkegOMEC7P02N9iQ/11urMU/rTrb6fKB6/G7\nKfFCQhWj+QKZGewXC+PYOMYJgUMk1WRsDcQScwIDAQABAoIBAF1Hja7t+Bwg9C0w\nd8ItYv9eS++nWMSwX8r6eTLWucIzOPGU3UYFYFkodIIlVsr125kv4jcy8jDJKg/v\nMftwO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dr7NgTVSPbFog3+LmlZ7EGGoYgXqmyH\nAPibHAScbdHrjOGP3lPasJmKqtVgN11dtJoNRj8GkQle2s1Hljnf\n-----END RSA PRIVATE KEY-----\n```\nRemove the BEGIN and END delimiters and the line breaks before adding it to jwt.json\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://cloud.githubusercontent.com/assets/1342803/24797159/52fb0d88-1b90-11e7-85a5-359fff0496a4.png\" width=\"320\" alt=\"MySQL\"\u003e\n    \u003cbr\u003e\n    \u003cbr\u003e\n    \u003ca href=\"http://beta.docs.vapor.codes/getting-started/hello-world/\"\u003e\n        \u003cimg src=\"http://img.shields.io/badge/read_the-docs-92A8D1.svg\" alt=\"Documentation\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"http://vapor.team\"\u003e\n        \u003cimg src=\"http://vapor.team/badge.svg\" alt=\"Slack Team\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"LICENSE\"\u003e\n        \u003cimg src=\"http://img.shields.io/badge/license-MIT-brightgreen.svg\" alt=\"MIT License\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://circleci.com/gh/vapor/mysql\"\u003e\n        \u003cimg src=\"https://circleci.com/gh/vapor/mysql.svg?style=shield\" alt=\"Continuous Integration\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://travis-ci.org/vapor/api-template\"\u003e\n    \t\u003cimg src=\"https://travis-ci.org/vapor/api-template.svg?branch=master\" alt=\"Build Status\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://swift.org\"\u003e\n        \u003cimg src=\"http://img.shields.io/badge/swift-3.1-brightgreen.svg\" alt=\"Swift 3.1\"\u003e\n    \u003c/a\u003e\n\u003c/center\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonycastelli%2Fvapor-jwtauthorization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthonycastelli%2Fvapor-jwtauthorization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonycastelli%2Fvapor-jwtauthorization/lists"}