Questions tagged [keycloak-admin-client]
12 questions
1
vote
0 answers
Typescript add custom type definitions for esm library from commonjs project
When using commonjs libraries it is possible to extend/overwrite their type, for example:
declare module 'ramda' {
function path(path: Path, obj: any): T;
}
But how can we do this with esm libraries?
I am trying to achieve same thing with…

valerii15298
- 737
- 4
- 15
1
vote
0 answers
Keycloak Admin Client 20.0.5 : all RoleRepresentation method return an 404 error
I need to generate automaticaly new group in my realm and try to add global role in this new group
Generating group is ok
Generating role is ok
I get the RoleScopeResource with MY_REALM.groups().group(groupName).roles().realmLevel() and it's ok. A…

Sirius
- 33
- 5
1
vote
0 answers
Can't create a user in keycloak via api
I'm trying to create user via KeycloakAdminClientService.
Client is confidential and has user creation roles associated.
not able to create the user, I'm getting forbidden 403
below is the code
UsersResource usersResource =…

Ashok
- 41
- 8
1
vote
2 answers
Error adding @keycloak\keycloak-admin-client package in NestJS application
I am new to Typescript and Nest JS, working to integrate Keycloak in my Nest JS application to add users to Keycloak. I have added @keycloak\keycloak-admin-client 19.x package to work on Keycloak admin API's. I am getting the below error while…

banupriya
- 1,220
- 5
- 21
- 51
1
vote
3 answers
How to enable 2FA using email using keycloak-admin-client in spring boot
My requirement is enable 2FA using email in Keycloak.
When enabled, if user tries to login through email & password ,after user is successfully authenticated ,time based token will be sent to email .
User will do this action from custom UI i.e in…

abishkar bhattarai
- 7,371
- 8
- 49
- 66
0
votes
1 answer
Keycloak: RESTEASY004655: Unable to invoke request: org.apache.http.conn.HttpHostConnectException:Connection refused
My application has a microservice architecture with eureka and I want to implement oauth2 with keycloak in my auth-service. I have created a Keycloak bean that connects to keycloak and creates realm and client. All services are deployed in docker.…

Sonnka
- 25
- 4
0
votes
0 answers
Validate a password with keycloak with the java admin client
Unfortunaly we can not use the keycloak interface directly so we had to build a proxy communicating with the keycloak over the java-admin-client in our application. Currently you are able to login and change your password with our proxy.
Now we want…

MCLonips
- 81
- 5
0
votes
0 answers
Keycloak response code 409 when trying to update permission
I'm trying to setup fine grain permissions on keycloak programatically with node and keycloak-admin-client. However any attempts give me a 409 response with "unknown_error".
Here's how i'm approaching it:
// By this point i've enabled fine…

aabrum
- 1
- 1
0
votes
0 answers
Can not query users in Keycloak return 403
I am using Keycloak 20.0.5, and for some reason API call to /admin/realms/my-realm/users/ return 403. I have added all roles to my client, my configurations is as follow
Custom client
Client roles, I have added all available roles just to test
My…

morgan9999
- 731
- 1
- 11
- 30
0
votes
0 answers
Create activated user in Keycloak
I am using Keycloak 21.0.0 and Quarkus 2.16.3.Final.
I would like to create an active user in Keycloak from my programme.
The user is also created, but deactivated.
All other values were also transferred
Code:
UserResource userResource =…

Kirbylix
- 13
- 6
0
votes
1 answer
Keycloak Admin Client throws error in server logs
am using keycloak admin client with my custom SPI.
I am getting this error when am trying to to create keycloak builder.
previously i tried this solution also but this didnt worked for me.
keycloak version 20.0.2 quarkus dist
this is the code I am…

Muhammad Haseeb
- 126
- 8
0
votes
0 answers
keycloak logout is not ending the active session
I've tried invalidating httpsession with the help of refresh_token and client_Credentials
the code returns 200 but user is still login in the browser and session is still active.
I've tried another way by using the LogoutAction and JWS, this also…

Ashok
- 41
- 8