keycloak-services

Defining a new user password through Keycloak REST API

浪尽此生 提交于 2021-01-29 12:10:02
问题 I am trying to create a new user via the REST API, and I'm sending this POST POST /admin/realms/myrealm/users Headers: Authorization: Bearer (generated token, this part is OK) Content-Type: application/json Body: { "username": "rahul", "enabled": true, "totp": false, "emailVerified": false, "firstName": "rahul", "lastName": "borse", "email": "rahulborse@yahoo.com", "credentials": [ { "type": "password", "value": "rahul" } ] } The user is created normally, but the password doesn't work, when I

Keycloak Custom message on user temporary lock

十年热恋 提交于 2021-01-29 11:20:59
问题 I am using Kyecloak:4.8.0, and have enabled Brute force attack for my realm. Now whenever user provides wrong credentials for 3 times user will be locked temporarily. But still user will see "Invalid username/password". According to this thread Keycloak have done this intentionally: https://issues.jboss.org/browse/KEYCLOAK-5284 But still i want to show user that his account has been locked. Is there any way to customize this message? I tried doing this by adding message in custom keycloak

How to create custom themes on Keycloak Operator deployment on Kubernetes?

邮差的信 提交于 2021-01-28 11:18:12
问题 Complete flow is somewhat like this: Step-1: Applying all the relevant YAMLs $ sudo kind create cluster --name aftab-cluster --config cluster-config.yaml $ curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.17.0/install.sh | bash -s v0.17.0 $ kubectl apply -f keycloak_backup.yaml $ kubectl apply -f keycloaks_client.yaml $ kubectl apply -f keycloaks_realm.yaml //Theme configs not there. So, added loginTheme. loginTheme: description: Login Theme type:

Create a User on Keycloack including password from curl command

青春壹個敷衍的年華 提交于 2021-01-21 07:29:12
问题 I have tried to create a user(without giving any password while creating) on keycloak using CURL command, it's success, but not able to know the password to login. So, how to give password to a user while creating. and also how to set default password for new users in keycloak I have used this link to create a user using curl: Create user on Keycloack from curl command 回答1: You need to set credentials for the user, so that you can login. something like this curl -v http://localhost:8080/auth

SMS based OTP in keycloak is possible?

北城以北 提交于 2020-12-05 07:11:23
问题 I am exploring keycloak and I want to build an application that was based on user mobile number, SMS OTP should go to the user for authentication. I am not finding any where. 回答1: It is possible through extending Authentication mechanism, check Authentication SPI documentation Take a look at existing solution: https://github.com/nickpack/keycloak-sms-authenticator-sns Even if it doesn't suite your needs you can take the source code as a reference point. 来源: https://stackoverflow.com/questions

SMS based OTP in keycloak is possible?

非 Y 不嫁゛ 提交于 2020-12-05 07:10:32
问题 I am exploring keycloak and I want to build an application that was based on user mobile number, SMS OTP should go to the user for authentication. I am not finding any where. 回答1: It is possible through extending Authentication mechanism, check Authentication SPI documentation Take a look at existing solution: https://github.com/nickpack/keycloak-sms-authenticator-sns Even if it doesn't suite your needs you can take the source code as a reference point. 来源: https://stackoverflow.com/questions

cannot create user in the keycloak. Getting 403 status

元气小坏坏 提交于 2020-08-22 05:19:42
问题 I am trying to access the create a user in the keycloak programmatically. But I am getting 403 as a status code. I am following the below link. https://technology.first8.nl/programmatically-adding-users-in-keycloak/ Can anyone help me? Thanks In advance I have using the following code to create user Keycloak kc = Keycloak.getInstance( "http://{server name}:8080/auth", "{realm name}", // the realm to log in to "{useraname}", "{password}", // the user "{client id}", "{client secret key}");

Keycloak/OIDC : retrieve user groups attributes

|▌冷眼眸甩不掉的悲伤 提交于 2020-07-06 19:57:46
问题 I've extracted a user's groups information from the OIDC endpoint of Keycloak, but they don't come with the group ATTRIBUTES I defined (see Attributes tab into the group form, near Settings). Is there a claim to add to my request? I'm using a RESTeasy client to reach Keycloak's admin API (had much better results than using the provided admin client, yet): @Path("/admin/realms/{realm}") public interface KeycloakAdminService { @GET @Path("/users/{id}/groups") @Consumes(MediaType.APPLICATION