Fetch Credentials Label using admin-cli #10080
Unanswered
AbhijitChatterjee007
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm new to Keycloak. In my project a user has two credentials of type password- PRIMARY and TEMPORARY.
I am setting the following values in credential representation before calling the password-reset api:
setTemporary(booleanValue);
setType(CredentialRepresentation.PASSWORD);
setValue(passwd);
setUserLabel(<>);
But, while fetching the credentials from user resource:
userResource.credentials();
The credential data has the following fields as null :
type = null, label = null, istemporary = null;
Can anyone please help? I need to read the user label from credentials and add logic in my code accordingly.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions