{"id":21198779,"url":"https://github.com/natlibfi/passport-keycloak-js","last_synced_at":"2025-10-12T01:41:51.898Z","repository":{"id":169298933,"uuid":"644892459","full_name":"NatLibFi/passport-keycloak-js","owner":"NatLibFi","description":"Passport strategy for Keycloak JWT","archived":false,"fork":false,"pushed_at":"2025-09-29T05:12:30.000Z","size":690,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-09-29T05:23:53.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/NatLibFi.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-05-24T13:23:09.000Z","updated_at":"2025-09-29T05:12:33.000Z","dependencies_parsed_at":"2023-11-21T09:27:20.712Z","dependency_job_id":"e88cb809-5eb4-4af8-b494-4372fb71aa91","html_url":"https://github.com/NatLibFi/passport-keycloak-js","commit_stats":null,"previous_names":["natlibfi/passport-keycloak-js"],"tags_count":48,"template":false,"template_full_name":null,"purl":"pkg:github/NatLibFi/passport-keycloak-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLibFi%2Fpassport-keycloak-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLibFi%2Fpassport-keycloak-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLibFi%2Fpassport-keycloak-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLibFi%2Fpassport-keycloak-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NatLibFi","download_url":"https://codeload.github.com/NatLibFi/passport-keycloak-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLibFi%2Fpassport-keycloak-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279009793,"owners_count":26084648,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-20T19:53:25.398Z","updated_at":"2025-10-12T01:41:51.851Z","avatar_url":"https://github.com/NatLibFi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Passport strategy for Keycloak JWT\n\nPassport strategy for Keycloak JWT. This module has the following features:\n- Written in modern day Javascript/ECMAscript\n- Supports HTTP Bearer authentication using Keycloak JWT as bearer tokens\n- Verifies token locally (i.e. does not use network calls to introspect endpoint, public keys are fetched from jwks endpoint and cached after first use)\n\n## Strategies\nThis module provides the following Passport strategies.\n\n### Bearer\nHTTP Bearer authentication works by using the token generated after signing in to Keycloak for gaining access to the defined resources.\n\nDoes **not** allow configuration for ignoring token expiration.\n\n### Usage\n\n#### ES modules\n```javascript\nimport {KeycloakStrategy} from '@natlibfi/passport-keycloak'\n```\n\n### Configuration\nConfiguration of the strategy needs to be passed to the class constructor as object.\n\n- **algorithms (required):** Algorithm for decoding jwt\n- **audience (required):** Audience of jwt\n- **issuer (required):** Issuer of jwt\n- **jwksUrl (required):** JWKS url to fetch public keys from\n\n\n## License and copyright\n\nCopyright (c) 2023-2024 **University Of Helsinki (The National Library Of Finland)**\n\nThis project's source code is licensed under the terms of **MIT license**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatlibfi%2Fpassport-keycloak-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatlibfi%2Fpassport-keycloak-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatlibfi%2Fpassport-keycloak-js/lists"}