wildfly-10

HttpServletRequest.login does not keep logged in for subsequent requests

大憨熊 提交于 2021-02-19 06:15:29
问题 After logging in using HttpServletRequest.login(String, String) , using the code below, on following requests I still get a Basic Authentication prompt. Why is the login function not working in my configuration? My endpoint: @POST @Path("login") @Consumes(MediaType.APPLICATION_JSON) public void login(@Valid LoginRequest loginRequest) { try { User user = userController.findUserByUsername(loginRequest.getUsername()).orElseThrow(NotFoundException::new); httpServletRequest.login(loginRequest

KeyCloak User Federation AND DYNAMIC ROLES

自闭症网瘾萝莉.ら 提交于 2021-02-10 07:08:43
问题 I am using this guide http://www.keycloak.org/docs/3.2/server_development/topics/user-storage.html to configure user federation. This works fine and my users can login. My users are stored in a Mysql Database. Users have different roles - also store in mysql. I am not not sure of how to add roles to the UserModel. I've implemented getUserXXX methods e.g @Override public UserModel getUserByEmail(String email, RealmModel realm) { LOGGER.info("LOADING BY EMAIL"); try (Connection connection = ds

KeyCloak User Federation AND DYNAMIC ROLES

醉酒当歌 提交于 2021-02-10 07:05:53
问题 I am using this guide http://www.keycloak.org/docs/3.2/server_development/topics/user-storage.html to configure user federation. This works fine and my users can login. My users are stored in a Mysql Database. Users have different roles - also store in mysql. I am not not sure of how to add roles to the UserModel. I've implemented getUserXXX methods e.g @Override public UserModel getUserByEmail(String email, RealmModel realm) { LOGGER.info("LOADING BY EMAIL"); try (Connection connection = ds

How to implement Recaptcha on keycloak login page

无人久伴 提交于 2021-02-07 04:16:41
问题 I want to implement recaptcha in keycloak login page like registration page. I extended UsernamePasswordForm class with desired factory class. I even implenmented action required classes as well. but still i can not see that in provider tab to add in login. i modified existing login.ftl also but no luck. below is what i tried. My Authenticator class: public class MyLoginAuthenticator extends UsernamePasswordForm { @Override public void action(AuthenticationFlowContext context) {

How to implement Recaptcha on keycloak login page

穿精又带淫゛_ 提交于 2021-02-07 04:15:44
问题 I want to implement recaptcha in keycloak login page like registration page. I extended UsernamePasswordForm class with desired factory class. I even implenmented action required classes as well. but still i can not see that in provider tab to add in login. i modified existing login.ftl also but no luck. below is what i tried. My Authenticator class: public class MyLoginAuthenticator extends UsernamePasswordForm { @Override public void action(AuthenticationFlowContext context) {

Keycloak Redirect URI is adding port zero to the url

橙三吉。 提交于 2021-01-03 04:58:23
问题 Encountered redirect_uri error in keycloak. Found same issue logged at JIRA KEYCLOAK-7237, just want to check any work around? Anyone can help? Thank you in advance. 2018-06-30 11:34:13,996 WARN [org.keycloak.events] (default task-8) type=LOGIN_ERROR, realmId=Victz, clientId=portal, userId=null, ipAddress=, error=invalid_redirect_uri, redirect_uri=https://www.example.com:0/home I am using apache http reverse proxy running on centos7, wildly 10, keycloak 3.4.3. has also tried in below

Keycloak Redirect URI is adding port zero to the url

烂漫一生 提交于 2021-01-03 04:57:57
问题 Encountered redirect_uri error in keycloak. Found same issue logged at JIRA KEYCLOAK-7237, just want to check any work around? Anyone can help? Thank you in advance. 2018-06-30 11:34:13,996 WARN [org.keycloak.events] (default task-8) type=LOGIN_ERROR, realmId=Victz, clientId=portal, userId=null, ipAddress=, error=invalid_redirect_uri, redirect_uri=https://www.example.com:0/home I am using apache http reverse proxy running on centos7, wildly 10, keycloak 3.4.3. has also tried in below

Send email wildfly localhost

我的梦境 提交于 2020-12-07 06:58:29
问题 I'm trying to configure wildfly which is running on localhost to send email but I'm failing miserably. I've read a bunch of tutorial where they use gmail to send email but this require SSL, and the server is running with a self signed certificate so that doesn't work. One thing I don't understand is if I 've to use an smtp server like gmail or if wildfly has one integrated and if I can use it to send emails. <subsystem xmlns="urn:jboss:domain:mail:2.0"> <mail-session jndi-name="java:jboss

Send email wildfly localhost

不打扰是莪最后的温柔 提交于 2020-12-07 06:57:23
问题 I'm trying to configure wildfly which is running on localhost to send email but I'm failing miserably. I've read a bunch of tutorial where they use gmail to send email but this require SSL, and the server is running with a self signed certificate so that doesn't work. One thing I don't understand is if I 've to use an smtp server like gmail or if wildfly has one integrated and if I can use it to send emails. <subsystem xmlns="urn:jboss:domain:mail:2.0"> <mail-session jndi-name="java:jboss

Send email wildfly localhost

倖福魔咒の 提交于 2020-12-07 06:57:21
问题 I'm trying to configure wildfly which is running on localhost to send email but I'm failing miserably. I've read a bunch of tutorial where they use gmail to send email but this require SSL, and the server is running with a self signed certificate so that doesn't work. One thing I don't understand is if I 've to use an smtp server like gmail or if wildfly has one integrated and if I can use it to send emails. <subsystem xmlns="urn:jboss:domain:mail:2.0"> <mail-session jndi-name="java:jboss