This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
Scope checking - v1.1.5
⚠️ This update has BREAKING CHANGES, please read below. ⚠️
Breaking Changes
- Removed dependency on
keycloak-backend
- Changed
ITokenContent
toKeycloakToken
How to migrate
See this commit for changes required (excluding the new checkScopes
query and migration to bun).
Scope checking
To check scopes, first ensure that the ctx.keycloak is of type KeycloakToken
.
Example
(new KeycloakToken(ctx.keycloak).hasScopes(["openid"])
Install
- Using yarn:
yarn add @nexirift/plugin-keycloak
- Using npm:
npm i @nexirift/plugin-keycloak
- Using bun:
bun install @nexirift/plugin-keycloak
Full Changelog: 1.1.4...1.1.5