keycloak

Keycloak Docker container fails to start after restarting the container

自闭症网瘾萝莉.ら 提交于 2020-12-12 04:40:22
问题 I have a Keycloak installation running as docker container in a docker-compose environment. Every night, my backup stops relevant containers, performs a DB and volume backup and restarts the containers again. For most it works, but Keycloak seems to have a problem with it and does not come up again afterwards. Looking at the logs, the error message is: The batch failed with the following error: : keycloak | WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:

Keycloak authentication on socket io

纵然是瞬间 提交于 2020-12-12 02:41:03
问题 I am trying to find out how to authenticate a socket io connection with keycloak. I have used successfully keycloak.protect() function as a middle ware in express, but I am at loss when it comes to socket io. I want something similar to this. app.get("/examples",keycloak.protect(), function(req, res) { res.sendFile(path.join(__dirname, '../production/examples.html')); }); For example to this : io.on('connection', keycloak.protect(), function(socket){ socket.on('disconnect', function(){

Keycloak authentication on socket io

半世苍凉 提交于 2020-12-12 02:40:07
问题 I am trying to find out how to authenticate a socket io connection with keycloak. I have used successfully keycloak.protect() function as a middle ware in express, but I am at loss when it comes to socket io. I want something similar to this. app.get("/examples",keycloak.protect(), function(req, res) { res.sendFile(path.join(__dirname, '../production/examples.html')); }); For example to this : io.on('connection', keycloak.protect(), function(socket){ socket.on('disconnect', function(){

specify user id when creating user in keycloak

二次信任 提交于 2020-12-08 06:27:12
问题 I'm investigating a migration process from a legacy system into keycloak. Based on some of the ideas here: https://github.com/Smartling/keycloak-user-migration-provider we're looking to create user accounts in keycloak at the point of login by looking up user credentials from some dedicated endpoints on our legacy system. As part of this, I need the user ID to remain the same as it was in the legacy system. Is it possible to create a user with a specified ID rather than relying on keycloak to

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

Obtain id_token with Keycloak

こ雲淡風輕ζ 提交于 2020-12-02 07:11:45
问题 Who knows how to obtain the id_token with Keycloak ? I have been working with Keycloak in Java (Spring, JEE) and postman. The basics work fine but I need the id_token since there are some claims that they are not present in the access_token but they are present in the id_token . Using the keycloak-core library I could obtain the Keycloak context, but the id_token attribute always is null. Some idea? 回答1: If you are using keycloak version 3.2.1, then below mail chain will help you. Hi All I am

How to specify refresh tokens lifespan in Keycloak

别等时光非礼了梦想. 提交于 2020-12-01 02:31:47
问题 Keycloak refresh token lifetime is 1800 seconds: "refresh_expires_in": 1800 How to specify different default expiry time? In Keycloak admin ui, only access token lifespan can be specified: 回答1: The refresh token lifetime is controlled by the SSO Session Idle Setting. 30 minutes = 30 * 60 = 1800 seconds (the refresh_expires_in value) 来源: https://stackoverflow.com/questions/52040265/how-to-specify-refresh-tokens-lifespan-in-keycloak