{"id":17874229,"url":"https://github.com/jomy10/libkeycloak","last_synced_at":"2025-04-03T00:12:57.838Z","repository":{"id":258364374,"uuid":"873470473","full_name":"Jomy10/libkeycloak","owner":"Jomy10","description":"A library for interacting with Keycloak and validating jwt tokens returned from it. Includes bindings for Ruby. (early development, features are lacking)","archived":false,"fork":false,"pushed_at":"2024-10-16T17:59:53.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T15:18:00.321Z","etag":null,"topics":["jwt","jwt-auth","jwt-authentication","jwt-token","keycloak","keycloak-rest-api"],"latest_commit_sha":null,"homepage":"","language":"C","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/Jomy10.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":"2024-10-16T08:18:56.000Z","updated_at":"2024-10-22T09:51:23.000Z","dependencies_parsed_at":"2024-10-18T17:01:04.549Z","dependency_job_id":"80a10902-03a7-4401-b1cd-a5d1101f9e24","html_url":"https://github.com/Jomy10/libkeycloak","commit_stats":null,"previous_names":["jomy10/libkeycloak"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jomy10%2Flibkeycloak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jomy10%2Flibkeycloak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jomy10%2Flibkeycloak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jomy10%2Flibkeycloak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jomy10","download_url":"https://codeload.github.com/Jomy10/libkeycloak/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246911469,"owners_count":20853657,"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-auth","jwt-authentication","jwt-token","keycloak","keycloak-rest-api"],"created_at":"2024-10-28T11:08:07.212Z","updated_at":"2025-04-03T00:12:57.816Z","avatar_url":"https://github.com/Jomy10.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Keycloak C\n\nA wrapper for the Keycloak API in C. Includes some bindings for different languages\n\n## Usage\n\n### Installation\n\n#### C\n\nsee [Building](#building).\n\n#### Ruby [![Gem Version](https://badge.fury.io/rb/libkeycloak.svg)](https://badge.fury.io/rb/libkeycloak)\n\n- Install the C library as a [dynamic library](#dynamic-library)\n- Install the gem\n```sh\ngem install libkeycloak\n```\n\n\u003c!-- - OR: `gem install keycloak-api` --\u003e\n\n## Building\n\nYou need Ruby and the colorize gem (`gem install colorize`)\n\n### Static library\n\n```sh\nruby build.rb build static\n```\n\nThere is only one header to be included, located at src/keycloak.h\n\n### Dynamic library\n\n```sh\nruby build.rb build dynamic\n```\n\nThe dynamc libraries are now located in the `build` folder. Copy them to a folder\nin `echo $LD_LIBRARY_PATH`.\n\n## Keycloak.json\n\nThe file `keycloak.json` is required by the library, you can obtain it from going to a Client in the Keycloak console\nand clicking \"action\" \u003e \"Download adapter config\" and choose JSON.\n\nIn settings, make sure \"Client authentication\" is turned on.\n\n## Examples\n\nTo run the examples, you need a keycloak.json. You can obtain it from going to a Client in the Keycloak console\nand clicking \"action\" \u003e \"Download adapter config\" and choose JSON.\n\nPaste the file in the root of this repository to try out the examples.\n\nAll the example code can be found in the root of this repository as `example.[lang]`.\n\nThe `[user]` and `[pass]` arguments are used to log in to a user in the keycloak realm specified by the `keycloak.json`.\n\n### C\n\n```sh\nruby build.rb test\n./build/test/a.out [user] [pass]\n```\n\n### Ruby\n\n```sh\nruby build.rb build dynamic\nLD_LIBRARY_PATH=\"$LD_LIBRARY_PATH:$(pwd)/build\" ruby example.rb [user] [pass]\n# OR: copy the dynamic library to a path in LD_LIBRARY_PATH\n```\n\n## Questions\n\nFeel free to ask any questions regarding the library as an issue.\n\n## License\n\nLicensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjomy10%2Flibkeycloak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjomy10%2Flibkeycloak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjomy10%2Flibkeycloak/lists"}