{"_id":"@auth-strategy-manager/keycloak","_rev":"12-a11351b20873b484119fc6403925acf3","name":"@auth-strategy-manager/keycloak","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"@auth-strategy-manager/keycloak","version":"1.0.0","keywords":["authentication","authorization","strategy","keycloak","auth","sso"],"author":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"license":"ISC","_id":"@auth-strategy-manager/keycloak@1.0.0","maintainers":[{"name":"azarov-serge","email":"s.a.azarov@gmail.com"}],"homepage":"https://github.com/azarov-serge/auth-strategy-manager#readme","bugs":{"url":"https://github.com/azarov-serge/auth-strategy-manager/issues"},"dist":{"shasum":"bc077c7f60ac39c8442b053ef0a9e37a091c88a7","tarball":"https://registry.npmjs.org/@auth-strategy-manager/keycloak/-/keycloak-1.0.0.tgz","fileCount":47,"integrity":"sha512-z+PBSriqTSVFN5a/rOe52mQLMAY2IojeytnAtfs4fbrpKJfOMRsCIa9Dx29wbmdJDUnLV8Notbc4r5QxmcvYlQ==","signatures":[{"sig":"MEUCIQDUYjHs0Qn0dTBOz6xOCxBvK+H37ucdYTFTBM8awvzrMwIgH0sAD0Jody/j0enOoxmXd8h9DG1PsdODH7jI0onv6Jk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42979},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"5365e11e0bd17a581d976a7a1614c32e609363d5","scripts":{"build":"tsc","prepare":"npm run build","prepublishOnly":"npm run build"},"_npmUser":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"repository":{"url":"git+https://github.com/azarov-serge/auth-strategy-manager.git","type":"git"},"_npmVersion":"10.5.0","description":"Keycloak strategy for auth-strategy-manager","directories":{},"_nodeVersion":"20.12.2","dependencies":{"keycloak-js":"24.0.1","@auth-strategy-manager/core":"^1.0.0"},"_hasShrinkwrap":false,"peerDependencies":{"keycloak-js":"24.0.1"},"_npmOperationalInternal":{"tmp":"tmp/keycloak_1.0.0_1752527966682_0.671435196548952","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@auth-strategy-manager/keycloak","version":"1.0.1","keywords":["authentication","authorization","strategy","keycloak","auth","sso"],"author":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"license":"ISC","_id":"@auth-strategy-manager/keycloak@1.0.1","maintainers":[{"name":"azarov-serge","email":"s.a.azarov@gmail.com"}],"homepage":"https://github.com/azarov-serge/auth-strategy-manager#readme","bugs":{"url":"https://github.com/azarov-serge/auth-strategy-manager/issues"},"dist":{"shasum":"76ceb764d5f7a9bdc57131cf14569edde6e2d0fb","tarball":"https://registry.npmjs.org/@auth-strategy-manager/keycloak/-/keycloak-1.0.1.tgz","fileCount":47,"integrity":"sha512-XOYQ7oRk5Dr3ZFVrjkT2NkXjA9e/9YoseYdB0H6HYsmmCUy1FoOD39XfKweAOKw6AVrJRtM7OTVhlwwX/+J8aA==","signatures":[{"sig":"MEQCIGpXwkIs9peQvc9wdSYgHSeKg3h2VRxpyW6jn0I+iwl+AiB90tOtlDIvk2bvuZJ/ikHKh+ruosmbo/U8bHK25iITiA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43046},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"40135c53fc6d2cbcdd838b9d96d414e32505236a","scripts":{"build":"tsc","prepare":"npm run build","prepublishOnly":"npm run build"},"_npmUser":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"repository":{"url":"git+https://github.com/azarov-serge/auth-strategy-manager.git","type":"git"},"_npmVersion":"10.5.0","description":"Keycloak strategy for auth-strategy-manager","directories":{},"_nodeVersion":"20.12.2","dependencies":{"keycloak-js":"24.0.1","@auth-strategy-manager/core":"^1.0.0"},"_hasShrinkwrap":false,"peerDependencies":{"keycloak-js":"24.0.1"},"_npmOperationalInternal":{"tmp":"tmp/keycloak_1.0.1_1752575709895_0.938151906331681","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@auth-strategy-manager/keycloak","version":"1.0.2","keywords":["authentication","authorization","strategy","keycloak","auth","sso"],"author":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"license":"ISC","_id":"@auth-strategy-manager/keycloak@1.0.2","maintainers":[{"name":"azarov-serge","email":"s.a.azarov@gmail.com"}],"homepage":"https://github.com/azarov-serge/auth-strategy-manager#readme","bugs":{"url":"https://github.com/azarov-serge/auth-strategy-manager/issues"},"dist":{"shasum":"180cfa09c5070a25bc558e7cd4c47ad75369dd5d","tarball":"https://registry.npmjs.org/@auth-strategy-manager/keycloak/-/keycloak-1.0.2.tgz","fileCount":47,"integrity":"sha512-J2H/VklWCRSADPzugtsNZJJaDiRlCybZmwboWMLQZw20VmkgU8eVuzgSM/ibhpUUVb5kYlPdqOrc7L8ZriJKqw==","signatures":[{"sig":"MEYCIQCVxoYo+bUB/wWnddBPNn6GOtL02fI5YDtKcqd8HvFIVQIhAIi8/NzI885ievR2fEzU16idvv5VakEYe9skyfzIoXVO","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43412},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"e51860cf0ab3f8aed04a93828e5790f3ffcad0ef","scripts":{"build":"tsc","prepare":"npm run build","prepublishOnly":"npm run build"},"_npmUser":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"repository":{"url":"git+https://github.com/azarov-serge/auth-strategy-manager.git","type":"git"},"_npmVersion":"10.5.0","description":"Keycloak strategy for auth-strategy-manager","directories":{},"_nodeVersion":"20.12.2","dependencies":{"keycloak-js":"24.0.1","@auth-strategy-manager/core":"^1.0.0"},"_hasShrinkwrap":false,"peerDependencies":{"keycloak-js":"24.0.1"},"_npmOperationalInternal":{"tmp":"tmp/keycloak_1.0.2_1752595247053_0.8703831011754581","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@auth-strategy-manager/keycloak","version":"1.0.3","keywords":["authentication","authorization","strategy","keycloak","auth","sso"],"author":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"license":"ISC","_id":"@auth-strategy-manager/keycloak@1.0.3","maintainers":[{"name":"azarov-serge","email":"s.a.azarov@gmail.com"}],"homepage":"https://github.com/azarov-serge/auth-strategy-manager#readme","bugs":{"url":"https://github.com/azarov-serge/auth-strategy-manager/issues"},"dist":{"shasum":"1eb7b92749fa65d299058176d1fbd02fc88eddba","tarball":"https://registry.npmjs.org/@auth-strategy-manager/keycloak/-/keycloak-1.0.3.tgz","fileCount":47,"integrity":"sha512-GC6gSvhoPAgh3TePq8CETL1l0+EJN3ADc1yE3uMEzbNGUAzo8FHBofXAcQ+FsScwoZ5MKV29+2xq3kvpO859sw==","signatures":[{"sig":"MEUCIHLzVnRAwND3C27BRplkF6GR7vTwlroFxzqShjXuQy97AiEAwrz1saJCR4GmAgw6Mf868jOfLhM0I2qJUTLJj7f1vSs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43267},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"5705e4e483e1289cfea951cf10296c71c5a0b660","scripts":{"build":"tsc","prepare":"npm run build","prepublishOnly":"npm run build"},"_npmUser":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"repository":{"url":"git+https://github.com/azarov-serge/auth-strategy-manager.git","type":"git"},"_npmVersion":"10.5.0","description":"Keycloak strategy for auth-strategy-manager","directories":{},"_nodeVersion":"20.12.2","dependencies":{"keycloak-js":"24.0.1","@auth-strategy-manager/core":"^1.0.0"},"_hasShrinkwrap":false,"peerDependencies":{"keycloak-js":"24.0.1"},"_npmOperationalInternal":{"tmp":"tmp/keycloak_1.0.3_1752654105586_0.8158435911058703","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@auth-strategy-manager/keycloak","version":"1.0.4","keywords":["authentication","authorization","strategy","keycloak","auth","sso"],"author":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"license":"ISC","_id":"@auth-strategy-manager/keycloak@1.0.4","maintainers":[{"name":"azarov-serge","email":"s.a.azarov@gmail.com"}],"homepage":"https://github.com/azarov-serge/auth-strategy-manager#readme","bugs":{"url":"https://github.com/azarov-serge/auth-strategy-manager/issues"},"dist":{"shasum":"b9c4452d2a674ab956fd177f481f7791686e8474","tarball":"https://registry.npmjs.org/@auth-strategy-manager/keycloak/-/keycloak-1.0.4.tgz","fileCount":11,"integrity":"sha512-D6FaBkS0Ethsu0qTIhUqHpDF2OrowVwIWBHTLKuZBYwo/2Ss+O6931Y2zY/GPm2uMV80z1KIO1xHCIVRUDATPg==","signatures":[{"sig":"MEQCIGjKucb4wfnVTSYc9zj25t9fo9yJL1MEM+IG3qnK96FQAiA2g7ojfG3DyJ+3L26vGGRIQnLLBOJfp0EMXnUvraQoVA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11724},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"8754009838dbba131dfe7a76ccf1516e2a5474ae","scripts":{"build":"tsc","prepare":"npm run build","prepublishOnly":"npm run build"},"_npmUser":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"repository":{"url":"git+https://github.com/azarov-serge/auth-strategy-manager.git","type":"git"},"_npmVersion":"10.5.0","description":"Keycloak strategy for auth-strategy-manager","directories":{},"_nodeVersion":"20.12.2","dependencies":{"keycloak-js":"26.2.0","@auth-strategy-manager/core":"^1.0.6"},"_hasShrinkwrap":false,"peerDependencies":{"keycloak-js":"26.2.0"},"_npmOperationalInternal":{"tmp":"tmp/keycloak_1.0.4_1753748049785_0.19988263739909296","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@auth-strategy-manager/keycloak","version":"1.0.5","keywords":["authentication","authorization","strategy","keycloak","auth","sso"],"author":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"license":"ISC","_id":"@auth-strategy-manager/keycloak@1.0.5","maintainers":[{"name":"azarov-serge","email":"s.a.azarov@gmail.com"}],"homepage":"https://github.com/azarov-serge/auth-strategy-manager#readme","bugs":{"url":"https://github.com/azarov-serge/auth-strategy-manager/issues"},"dist":{"shasum":"cede0d9574580a1dfff91add851ce451f5e929d3","tarball":"https://registry.npmjs.org/@auth-strategy-manager/keycloak/-/keycloak-1.0.5.tgz","fileCount":11,"integrity":"sha512-yaScJ7w6wtm2dSrOHfnFQudS61b+Mw9Xlj6pnmWTmNCEErTvjI7++urWm8Tp3hut1dhFkZvDEC5WxVZZ9IZERA==","signatures":[{"sig":"MEUCIGvdrZo6V9s6LD7x8mxM0CwiYSVwSfShGxhgrsuKR+ARAiEA9brO6VSQoDg7nE1SMI3OVa82D1MrRy8c9/2QfTB4nFM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11989},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"2ed046751c5faa82ba864a498a47413280848511","scripts":{"build":"tsc","prepare":"npm run build","prepublishOnly":"npm run build"},"_npmUser":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"repository":{"url":"git+https://github.com/azarov-serge/auth-strategy-manager.git","type":"git"},"_npmVersion":"10.5.0","description":"Keycloak strategy for auth-strategy-manager","directories":{},"_nodeVersion":"20.12.2","dependencies":{"keycloak-js":"26.2.0","@auth-strategy-manager/core":"^1.0.6"},"_hasShrinkwrap":false,"peerDependencies":{"keycloak-js":"26.2.0"},"_npmOperationalInternal":{"tmp":"tmp/keycloak_1.0.5_1770642145873_0.8974854307978697","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@auth-strategy-manager/keycloak","version":"1.0.6","keywords":["authentication","authorization","strategy","keycloak","auth","sso"],"author":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"license":"ISC","_id":"@auth-strategy-manager/keycloak@1.0.6","maintainers":[{"name":"azarov-serge","email":"s.a.azarov@gmail.com"}],"homepage":"https://github.com/azarov-serge/auth-strategy-manager#readme","bugs":{"url":"https://github.com/azarov-serge/auth-strategy-manager/issues"},"dist":{"shasum":"e9dfb02fb8552d68c9b87eae13451a4b0439b193","tarball":"https://registry.npmjs.org/@auth-strategy-manager/keycloak/-/keycloak-1.0.6.tgz","fileCount":11,"integrity":"sha512-mZ9TMJkbDofWwxfPWSJibPm204CpNI+pUQ8NQpRtx56iWFE3kgWG3EA1rUjhVkxf0zHqL40jbVkvFdTOv9NdNw==","signatures":[{"sig":"MEUCIQCGjORXTMaCX+diF87/7UHqdjewV7XMLtabO2Ys5Do7bAIgW+LVZ8SH+t5AydetEtYpdqROi7UYjVKYuNx4R51NuaI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12361},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"d6d0e6bb4e7101be38a1f1929dd4f0ed03f29545","scripts":{"build":"tsc","prepare":"npm run build","prepublishOnly":"npm run build"},"_npmUser":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"repository":{"url":"git+https://github.com/azarov-serge/auth-strategy-manager.git","type":"git"},"_npmVersion":"10.5.0","description":"Keycloak strategy for auth-strategy-manager","directories":{},"_nodeVersion":"20.12.2","dependencies":{"keycloak-js":"26.2.0","@auth-strategy-manager/core":"^1.1.0"},"_hasShrinkwrap":false,"peerDependencies":{"keycloak-js":"26.2.0"},"_npmOperationalInternal":{"tmp":"tmp/keycloak_1.0.6_1772722139568_0.6015788265366764","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@auth-strategy-manager/keycloak","version":"1.0.7","keywords":["authentication","authorization","strategy","keycloak","auth","sso"],"author":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"license":"ISC","_id":"@auth-strategy-manager/keycloak@1.0.7","maintainers":[{"name":"azarov-serge","email":"s.a.azarov@gmail.com"}],"homepage":"https://github.com/azarov-serge/auth-strategy-manager#readme","bugs":{"url":"https://github.com/azarov-serge/auth-strategy-manager/issues"},"dist":{"shasum":"c0513ce4b1e382f88ac5905a45939f2fedbaadc4","tarball":"https://registry.npmjs.org/@auth-strategy-manager/keycloak/-/keycloak-1.0.7.tgz","fileCount":11,"integrity":"sha512-iNcaqDqsQd3S8cYAeXTVVQqP5oXpwfABZnODzYu6khSP/u0y0G1xBOm5GhjQFwZu1gLPXxXtlGHIxikRYyLl7A==","signatures":[{"sig":"MEYCIQCuVORGj3pQwYBBGKgUnLQmIdkPGyyWzWWPg/0KM/H13QIhAJT3Acrf/LvkiE1No+mXXxMlU3cDTIZVQFe5jRUVKaEh","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15529},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"5f1ee02a741be428b22b5890a5d26dc9fc268ca9","scripts":{"build":"tsc","prepare":"npm run build","prepublishOnly":"npm run build"},"_npmUser":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"repository":{"url":"git+https://github.com/azarov-serge/auth-strategy-manager.git","type":"git"},"_npmVersion":"10.5.0","description":"Keycloak strategy for auth-strategy-manager","directories":{},"_nodeVersion":"20.12.2","dependencies":{"keycloak-js":"26.2.0","@auth-strategy-manager/core":"^1.1.1"},"_hasShrinkwrap":false,"peerDependencies":{"keycloak-js":"26.2.0"},"_npmOperationalInternal":{"tmp":"tmp/keycloak_1.0.7_1772819709339_0.2868174983623315","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@auth-strategy-manager/keycloak","version":"1.0.8","keywords":["authentication","authorization","strategy","keycloak","auth","sso"],"author":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"license":"ISC","_id":"@auth-strategy-manager/keycloak@1.0.8","maintainers":[{"name":"azarov-serge","email":"s.a.azarov@gmail.com"}],"homepage":"https://github.com/azarov-serge/auth-strategy-manager#readme","bugs":{"url":"https://github.com/azarov-serge/auth-strategy-manager/issues"},"dist":{"shasum":"9a67ce055dc543c3d75193367f162fc5770de952","tarball":"https://registry.npmjs.org/@auth-strategy-manager/keycloak/-/keycloak-1.0.8.tgz","fileCount":11,"integrity":"sha512-+XMjlYiOVeARMq9fCdrBNdsl1S8KmPpwbEGMdrh1hM2lf3/8GVhOGtceX4WhMiZvojkY8ei0yZI08P3dyEOvZw==","signatures":[{"sig":"MEUCIESa8+AZ1ux55CN7tpqP+NNoOyD4Z03BSBk68ZegUycgAiEAqtOhvQsP7uU74GV+7jyq9KHAlgCnVXqXveTdC/nkFcM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15593},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"6498ae8df0e9832288c5f068d8e1ba0f788cff7a","scripts":{"build":"tsc","prepare":"npm run build","prepublishOnly":"npm run build"},"_npmUser":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"repository":{"url":"git+https://github.com/azarov-serge/auth-strategy-manager.git","type":"git"},"_npmVersion":"10.5.0","description":"Keycloak strategy for auth-strategy-manager","directories":{},"_nodeVersion":"20.12.2","dependencies":{"keycloak-js":"26.2.0","@auth-strategy-manager/core":"^1.1.1"},"_hasShrinkwrap":false,"peerDependencies":{"keycloak-js":"26.2.0"},"_npmOperationalInternal":{"tmp":"tmp/keycloak_1.0.8_1774300156838_0.06898311280436342","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@auth-strategy-manager/keycloak","version":"2.0.1","description":"Keycloak strategy for auth-strategy-manager","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","prepare":"npm run build","prepublishOnly":"npm run build"},"dependencies":{"keycloak-js":"26.2.0"},"peerDependencies":{"@auth-strategy-manager/core":"^2.0.0","keycloak-js":"26.2.0"},"keywords":["authentication","authorization","strategy","keycloak","auth","sso"],"author":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/azarov-serge/auth-strategy-manager.git"},"bugs":{"url":"https://github.com/azarov-serge/auth-strategy-manager/issues"},"homepage":"https://github.com/azarov-serge/auth-strategy-manager#readme","_id":"@auth-strategy-manager/keycloak@2.0.1","gitHead":"a06c982bdba6dd31ae0362c5f3d9b2b4a3db310f","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-s6vukuZrPKhUbib0YzZkB2fZc4ixiGQBRG43inj5B4NjUO99Yfi26rYhUo92npfWFKVHxDdkKgzvix77EF1Xkg==","shasum":"98bae7d0823d8de02bd16df62891ed29d622a56d","tarball":"https://registry.npmjs.org/@auth-strategy-manager/keycloak/-/keycloak-2.0.1.tgz","fileCount":12,"unpackedSize":21660,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDd1VcZDlNQO3ctGfzL1Jn6GWXj0H4x6P4tjE1vH2zZJwIhAOgOH/VbDBE3sA07MtFyikqzUOUHu6rw89Lmc2OUXdkS"}]},"_npmUser":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"directories":{},"maintainers":[{"name":"azarov-serge","email":"s.a.azarov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/keycloak_2.0.1_1774455502293_0.02669604592191832"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-14T21:19:26.290Z","modified":"2026-03-25T16:18:22.647Z","1.0.0":"2025-07-14T21:19:26.864Z","1.0.1":"2025-07-15T10:35:10.123Z","1.0.2":"2025-07-15T16:00:47.247Z","1.0.3":"2025-07-16T08:21:45.751Z","1.0.4":"2025-07-29T00:14:09.958Z","1.0.5":"2026-02-09T13:02:26.010Z","1.0.6":"2026-03-05T14:48:59.714Z","1.0.7":"2026-03-06T17:55:09.526Z","1.0.8":"2026-03-23T21:09:16.984Z","2.0.0":"2026-03-25T15:45:54.158Z","2.0.1":"2026-03-25T16:18:22.474Z"},"bugs":{"url":"https://github.com/azarov-serge/auth-strategy-manager/issues"},"author":{"name":"azarov-serge","email":"s.a.azarov@gmail.com"},"license":"ISC","homepage":"https://github.com/azarov-serge/auth-strategy-manager#readme","keywords":["authentication","authorization","strategy","keycloak","auth","sso"],"repository":{"type":"git","url":"git+https://github.com/azarov-serge/auth-strategy-manager.git"},"description":"Keycloak strategy for auth-strategy-manager","maintainers":[{"name":"azarov-serge","email":"s.a.azarov@gmail.com"}],"readme":"# @auth-strategy-manager/keycloak\n\nKeycloak strategy for [auth-strategy-manager](https://github.com/azarov-serge/auth-strategy-manager). **v2** targets `@auth-strategy-manager/core` **^2.0.0**.\n\n## Documentation in other languages\n\n- [Russian (Русский)](README_RU.md)\n- English (this file)\n\n## Installation\n\n```bash\nnpm install @auth-strategy-manager/keycloak @auth-strategy-manager/core keycloak-js\n```\n\n## Usage\n\nUse `AuthStrategyManager` from **core** for persistence (`AuthStorageManager`, strategy name, tokens). `KeycloakStrategy` talks to Keycloak JS and returns `AuthManagerData` from `checkAuth`, `signIn`, and `refreshToken`.\n\n```typescript\nimport { AuthStrategyManager } from '@auth-strategy-manager/core';\nimport { KeycloakStrategy } from '@auth-strategy-manager/keycloak';\n\nconst keycloakStrategy = new KeycloakStrategy({\n  keycloak: {\n    realm: 'my-realm',\n    url: 'https://keycloak.example.com',\n    clientId: 'my-client',\n  },\n  signInUrl: 'https://myapp.com/login',\n  name: 'my-keycloak',\n  only: false,\n  init: {\n    flow: 'standard',\n    onLoad: 'check-sso',\n  },\n});\n\nconst authManager = new AuthStrategyManager([keycloakStrategy]);\n\n// Optional: align redirect base with the manager (used by keycloak.login / logout redirects)\nkeycloakStrategy.startUrl = authManager.startUrl ?? window.location.origin;\n\nconst state = await authManager.checkAuth();\nawait authManager.signIn();\nawait authManager.refreshToken(30);\nawait authManager.signOut();\n```\n\n### Before you test (integration checklist)\n\n- Install **`@auth-strategy-manager/core@^2.0.0`** together with **`@auth-strategy-manager/keycloak@^2.0.0`** (peer dependency).\n- Prefer **`authManager.checkAuth()` / `signIn()` / `refreshToken()` / `signOut()`** so `AuthStorageManager` stays in sync with `AuthManagerData`. Calling only `keycloakStrategy.*` skips manager persistence.\n- **`keycloak.login()`** often triggers a **full redirect**; when the app loads again, run **`authManager.checkAuth()`** (or your bootstrap flow) so tokens from Keycloak JS are written through the manager.\n- Set **`keycloakStrategy.startUrl`** (and **`signInUrl`** in config when needed) to URLs Keycloak is allowed to redirect to (must match Keycloak client settings).\n- With **multiple strategies**, call **`authManager.use('my-keycloak')`** (same string as `name` in config, default is `'keycloak'`).\n- There is **no** `KeycloakStrategy.clear()` — use **`authManager.clear()`**; tokens are not mirrored into Storage by this package.\n\n## Breaking changes from v1\n\n- **`checkAuth`** returns `Promise<AuthManagerData>` (not `boolean`). Prefer `authManager.checkAuth()` so storage stays in sync.\n- **`refreshToken`** returns `Promise<AuthManagerData>` (not `void`).\n- Strategy name and session flags are owned by **core** `AuthStrategyManager` / `AuthStorageManager`.\n- **`startUrl`** is stored on the strategy instance only (not mirrored via `localStorage` from this package).\n- **`accessToken` storage config removed** — use **core** `AuthStorageManager` only; no duplicate mirror in `sessionStorage` / `localStorage` from this package.\n- **Peer dependency**: install `@auth-strategy-manager/core` **^2.0.0** yourself.\n\n## Configuration\n\n### KeycloakConfig\n\n```typescript\nimport type { KeycloakInitOptions } from 'keycloak-js';\n\ntype KeycloakConfig = {\n  keycloak: {\n    realm: string;\n    url: string;\n    clientId: string;\n  };\n  init?: KeycloakInitOptions;\n  signInUrl?: string;\n  name?: string;\n  only?: boolean;\n};\n```\n\n### Parameters\n\n- `keycloak.*` — Keycloak client settings passed to `keycloak-js`.\n- `init` — Options for `keycloak.init` (default: `{ flow: 'standard', onLoad: 'check-sso' }`).\n- `signInUrl` — Redirect URI for login / logout when `only` is false.\n- `name` — Strategy id (default: `'keycloak'`).\n- `only` — If `true`, `logout` uses no `redirectUri`.\n\nToken storage is **not** configured on this strategy: use `AuthStorageManager` on `AuthStrategyManager` from **core** (Keycloak keeps tokens in memory on the JS client; `checkAuth` / `refreshToken` / `signIn` expose them via `AuthManagerData` for the manager to persist).\n\n## API\n\n### KeycloakStrategy\n\n#### Constructor\n\n```typescript\nconstructor(config: KeycloakConfig)\n```\n\n#### Methods\n\n- `checkAuth(): Promise<AuthManagerData>`\n- `signIn<T, D>(config?: D): Promise<T>` — merges Keycloak session into `AuthManagerData` shape in the return value when no full page redirect occurs.\n- `signUp<T, D>(config?: D): Promise<T>` — returns an unauthenticated `AuthManagerData` placeholder (no Keycloak registration flow here).\n- `signOut(): Promise<void>` — `keycloak.logout`.\n- `refreshToken<T>(sec?: T): Promise<AuthManagerData>` — `updateToken`; `sec` as a number sets `minValiditySeconds` (default **5**).\n\n#### Properties\n\n- `name`, `keycloak`, `only`, `init`, `signInUrl`\n- `token` (read-only) / `isAuthenticated` — from the Keycloak JS client\n- `startUrl` — get/set in-memory redirect base\n\n## License\n\nISC\n","readmeFilename":"README.md"}