Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Scope checking - v1.1.5

Compare
Choose a tag to compare
@Creaous Creaous released this 26 Mar 23:50
· 1 commit to main since this release

⚠️ This update has BREAKING CHANGES, please read below. ⚠️

Breaking Changes

  • Removed dependency on keycloak-backend
  • Changed ITokenContent to KeycloakToken

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