keycloak

Keycloak - Multi/2FA Factor - OTP - QR Code - Custom Login Screen - Rest API

孤者浪人 提交于 2021-02-19 23:34:44
问题 I have my own Login page where user enters username/password. This username/password are used to login through Keycloak Rest API. http://localhost:8080/auth/realms/Demo/protocol/openid-connect/token input - {username,password,grant_type,client_secret,client_id} And in response i get access token . Now i wish to enable Authenticator ( Google Authenticator ). I have enabled it from backend. Now if user wishes to login thorugh my application, my login page i need to get below details. 1.)

Keycloak - Multi/2FA Factor - OTP - QR Code - Custom Login Screen - Rest API

梦想与她 提交于 2021-02-19 23:21:56
问题 I have my own Login page where user enters username/password. This username/password are used to login through Keycloak Rest API. http://localhost:8080/auth/realms/Demo/protocol/openid-connect/token input - {username,password,grant_type,client_secret,client_id} And in response i get access token . Now i wish to enable Authenticator ( Google Authenticator ). I have enabled it from backend. Now if user wishes to login thorugh my application, my login page i need to get below details. 1.)

Keycloak - Multi/2FA Factor - OTP - QR Code - Custom Login Screen - Rest API

拥有回忆 提交于 2021-02-19 23:21:35
问题 I have my own Login page where user enters username/password. This username/password are used to login through Keycloak Rest API. http://localhost:8080/auth/realms/Demo/protocol/openid-connect/token input - {username,password,grant_type,client_secret,client_id} And in response i get access token . Now i wish to enable Authenticator ( Google Authenticator ). I have enabled it from backend. Now if user wishes to login thorugh my application, my login page i need to get below details. 1.)

Keycloak - Multi/2FA Factor - OTP - QR Code - Custom Login Screen - Rest API

你。 提交于 2021-02-19 23:18:56
问题 I have my own Login page where user enters username/password. This username/password are used to login through Keycloak Rest API. http://localhost:8080/auth/realms/Demo/protocol/openid-connect/token input - {username,password,grant_type,client_secret,client_id} And in response i get access token . Now i wish to enable Authenticator ( Google Authenticator ). I have enabled it from backend. Now if user wishes to login thorugh my application, my login page i need to get below details. 1.)

How to reset user password in keycloak using REST API

余生长醉 提交于 2021-02-19 06:15:44
问题 I want to make a rest call to my Keycloak server. According to doc it should be easy: https://www.keycloak.org/docs-api/10.0/rest-api/index.html#_executeactionsemail So before I'll start codeing I want to prepare Postman call, so my url is http://localhost:8080/auth/admin/realms/test/users/12345/execute-actions-email in raw body I'm providing ['UPDATE_PASSWORD'] and what I get is 401 Unauthorized and I can't get what I'm doing wrong? Body: Headers are default: 回答1: For accessing the Admin

How to reset user password in keycloak using REST API

帅比萌擦擦* 提交于 2021-02-19 06:14:34
问题 I want to make a rest call to my Keycloak server. According to doc it should be easy: https://www.keycloak.org/docs-api/10.0/rest-api/index.html#_executeactionsemail So before I'll start codeing I want to prepare Postman call, so my url is http://localhost:8080/auth/admin/realms/test/users/12345/execute-actions-email in raw body I'm providing ['UPDATE_PASSWORD'] and what I get is 401 Unauthorized and I can't get what I'm doing wrong? Body: Headers are default: 回答1: For accessing the Admin

How to synchronize Microsoft users from Azure into the Keycloak

橙三吉。 提交于 2021-02-18 19:16:11
问题 We are trying to figure out a way to synchronize users from Azure Account into the Keycloak? Unfortunately, we could not find a documentation for it Do you know a proper way to do it ? I want to use Azure as an external DB that I can use to authenticate my users. Thank you 回答1: I want to use Azure as an external DB that I can use to authenticate my users For that you can use Keycloak's User Federation functionality: Many companies have existing user databases that hold information about users

Getting Access Token with Spring Cloud Gateway and Spring Security with Keycloak

回眸只為那壹抹淺笑 提交于 2021-02-17 05:17:48
问题 I am using Spring cloud Gateway with Spring security and Keycloak for Access management. I am having an issue getting the access token with spring cloud gateway as the token I am getting doesn't have all the parameters like what I get from the token endpoint in keycloak. When I hit the keycloak token endpoint with all the details: http://localhost:8080/auth/realms/myrealm/protocol/openid-connect/token { "exp": 1595310135, "iat": 1595309835, "jti": "0a78d67c-878c-468c-8d03-e003af0350c3", "iss"

MySQL and Keycloak setup

China☆狼群 提交于 2021-02-11 17:25:24
问题 Hello I am trying to add mysql database in my Keycloak server. I've added module.xml and mysql-connector-java-5.1.42-bin.jar under /modules/system/layers/base/com/mysql/main. When I am running the command to add mysql module, ./jboss-cli.sh, it errors out with Exception in thread "CLI Terminal Connection (uninterruptable)" java.lang.ArithmeticException: / by zero And when i am trying to start Keycloak, I am also notified that there is a missing service. service jboss.jdbc-driver.mysql

Setting up a multi Tenancy application

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-11 16:34:08
问题 I am currently working on a distributed (multi-site) application capable of operating offline. I would like to be able to configure each instance of Keycloak remotely and individually from a Keycloak administration instance. In addition, each instance has its own users, policies and permissions. How can I achieve this? 回答1: If you are new to Keycloak I would suggest starting by reading its documentation it will make your life easier when it comes to make decision. In addition, each instance