-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Labels
area/adapter/javascriptbackport/26.5kind/bugCategorizes a PR related to a bugCategorizes a PR related to a bugpriority/blockerHighest Priority. Has a deadline and it blocks other tasksHighest Priority. Has a deadline and it blocks other tasksrelease/26.6.0team/core-clients
Description
Before reporting an issue
- I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.
Area
adapter/javascript
Describe the bug
Cannot generate auth token using keycloak admin client after upgrading the js library to 26.5.3. Downgrading to v26.5.2 fixes the issue.
Version
26.5.3
Regression
- The issue is a regression
Expected behavior
No errors to be thrown.
Actual behavior
TypeError: Cannot read properties of undefined (reading 'split')
at decodeToken (.../lib/utils/decode.js:2:31)
at KeycloakAdminClient.setRefreshToken (.../lib/client.js:109:37)
at KeycloakAdminClient.auth (.../lib/client.js:83:14)
How to Reproduce?
- install v26.5.3
- run the following snippet
import KcAdminClient from '@keycloak/keycloak-admin-client';
const kcAdminClient = new KcAdminClient({
baseUrl: process.env.KEYCLOAK_URL,
});
await kcAdminClient.auth({
clientId: process.env.KEYCLOAK_ADMIN_CLIENT_ID,
clientSecret: process.env.KEYCLOAK_ADMIN_CLIENT_SECRET,
grantType: 'client_credentials',
});Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/adapter/javascriptbackport/26.5kind/bugCategorizes a PR related to a bugCategorizes a PR related to a bugpriority/blockerHighest Priority. Has a deadline and it blocks other tasksHighest Priority. Has a deadline and it blocks other tasksrelease/26.6.0team/core-clients