{"id":19814904,"url":"https://github.com/aayush-683/keycloak-express","last_synced_at":"2026-04-10T01:53:27.692Z","repository":{"id":227592228,"uuid":"761878696","full_name":"Aayush-683/Keycloak-Express","owner":"Aayush-683","description":"A sample app that shows the usage of keycloak authentication in an Express Webserver","archived":false,"fork":false,"pushed_at":"2024-03-14T05:16:23.000Z","size":124,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-19T10:14:34.421Z","etag":null,"topics":["authentication","authentication-backend","ejs","expressjs","keycloak","keycloak-server","oauth2-server","oidc","openid-connect","passportjs","resume-project","session"],"latest_commit_sha":null,"homepage":"https://key-cloak.vercel.app","language":"EJS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aayush-683.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-02-22T16:52:40.000Z","updated_at":"2024-07-20T03:21:45.000Z","dependencies_parsed_at":"2024-03-14T06:28:58.550Z","dependency_job_id":"5ba88021-e9cb-4b01-9186-e385d60ef779","html_url":"https://github.com/Aayush-683/Keycloak-Express","commit_stats":null,"previous_names":["aayush-683/keycloak-express"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aayush-683%2FKeycloak-Express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aayush-683%2FKeycloak-Express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aayush-683%2FKeycloak-Express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aayush-683%2FKeycloak-Express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aayush-683","download_url":"https://codeload.github.com/Aayush-683/Keycloak-Express/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233456042,"owners_count":18678963,"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","authentication-backend","ejs","expressjs","keycloak","keycloak-server","oauth2-server","oidc","openid-connect","passportjs","resume-project","session"],"created_at":"2024-11-12T10:03:42.576Z","updated_at":"2025-12-31T01:09:02.316Z","avatar_url":"https://github.com/Aayush-683.png","language":"EJS","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Keycloak-express\n- A sample express based app that manages to integrate with Keycloak for authentication and authorization.\n- Made in 5 days without any prior knowledge of Keycloak or its integration with Node.js for a College Project.\n\n# Routes\n```\n- /home: A public route that can be accessed without any authentication.\n- /profile: A protected route that can only be accessed by authenticated users.\n- /info: A page that shows the website info and can be accessed by anyone\n- /contact: A public page to send a message to site admin\n```\n\n# Pre-requisites\n- Node.js v16.x or higher\n- Keycloak v17.x or higher (local or remote)\n- NPM v8.x or higher\n\n# Setup Keycloak\n- Download and install Keycloak from the [official website](https://www.keycloak.org/downloads.html)\n- Extract it and run the following command to start the Keycloak Development Server\n```bash\n    $ bin/kc.sh start-dev\n```\n- Open the Keycloak admin console at `http://localhost:8080/auth` and setup the admin credentials and login\n- Create a new realm and a new client in the realm [Refer to the Keycloak documentation](https://www.keycloak.org/docs/latest/server_admin/index.html#_create-realm)\n- Create a new user in the realm and assign a password to the user [Refer to the Keycloak documentation](https://www.keycloak.org/docs/latest/server_admin/index.html#proc-creating-user_server_administration_guide)\n- Note down the realm name, client id, client secret, user name and password for the next steps\n\n# Setup the project\n- Clone the repository to your local machine\n- Run `npm install` to install the dependencies\n- Configure the `config.json` file with the App and Keycloak settings\n- Start the server by running `npm start`\n  \n# Usage\n- Open the browser and navigate to `http://localhost:3000` (or the port you have configured)\n- Click on the `Login` button to authenticate with Keycloak\n- After successful authentication, you will be redirected to the home page\n- Click on the `Profile` link to access the protected route and see the user details\n  \n# Contributing\n- Feel free to fork the repository and submit a pull request with your changes\n- For any issues, please raise a ticket in the issues section\n- For any queries, please reach out to the author\n- If you like the project, please give a star to the repository\n- If you find it useful, please share it with your friends and colleagues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faayush-683%2Fkeycloak-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faayush-683%2Fkeycloak-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faayush-683%2Fkeycloak-express/lists"}