Hello, I set up correctly keycloak adapter with wildfly 10. the module was loaded but when open the application configured in the browser, it doesn’t redirect me to the portal and the page was loaded without auth.
The response in the log is the follow
2022-05-27 13:51:47,781 DEBUG [io.undertow.request] (default I/O-1) Matched prefix path /FIT-MAG for path /FIT-MAG/
2022-05-27 13:51:47,786 DEBUG [org.keycloak.adapters.PreAuthActionsHandler] (default task-7) adminRequest http://localhost:8080/FIT-MAG/
2022-05-27 13:51:47,787 DEBUG [io.undertow.request.security] (default task-7) Attempting to authenticate HttpServerExchange{ GET /FIT-MAG/ request {Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9], Accept-Language=[it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7,de;q=0.6], Cache-Control=[max-age=0], Sec-Fetch-Mode=[navigate], Accept-Encoding=[gzip, deflate, br], sec-ch-ua=[" Not A;Brand";v=“99”, “Chromium”;v=“101”, “Google Chrome”;v=“101”], sec-ch-ua-mobile=[?0], User-Agent=[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36], Sec-Fetch-User=[?1], Sec-Fetch-Dest=[document], Connection=[keep-alive], Sec-Fetch-Site=[none], sec-ch-ua-platform=[“Windows”], Cookie=[JSESSIONID=Ka3XGoB-7uUR3BlNZIR9M9jDlRq8oAvDD4XEopCi.siin020b], Upgrade-Insecure-Requests=[1], Host=[localhost:8080]} response {X-Powered-By=[Undertow/1], Server=[WildFly/10]}}, authentication required: false
2022-05-27 13:51:47,788 DEBUG [io.undertow.request.security] (default task-7) Authentication outcome was NOT_ATTEMPTED with method io.undertow.security.impl.CachedAuthenticatedSessionMechanism@bbe212d for HttpServerExchange{ GET /FIT-MAG/ request {Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9], Accept-Language=[it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7,de;q=0.6], Cache-Control=[max-age=0], Sec-Fetch-Mode=[navigate], Accept-Encoding=[gzip, deflate, br], sec-ch-ua=[" Not A;Brand";v=“99”, “Chromium”;v=“101”, “Google Chrome”;v=“101”], sec-ch-ua-mobile=[?0], User-Agent=[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36], Sec-Fetch-User=[?1], Sec-Fetch-Dest=[document], Connection=[keep-alive], Sec-Fetch-Site=[none], sec-ch-ua-platform=[“Windows”], Cookie=[JSESSIONID=Ka3XGoB-7uUR3BlNZIR9M9jDlRq8oAvDD4XEopCi.siin020b], Upgrade-Insecure-Requests=[1], Host=[localhost:8080]} response {X-Powered-By=[Undertow/1], Server=[WildFly/10]}}
2022-05-27 13:51:47,792 DEBUG [org.keycloak.adapters.undertow.ServletSessionTokenStore] (default task-7) Account was not in session, returning null
2022-05-27 13:51:47,793 DEBUG [org.keycloak.adapters.OAuthRequestAuthenticator] (default task-7) there was no code
2022-05-27 13:51:47,794 DEBUG [org.keycloak.adapters.OAuthRequestAuthenticator] (default task-7) redirecting to auth server
2022-05-27 13:51:47,796 DEBUG [org.keycloak.adapters.OAuthRequestAuthenticator] (default task-7) callback uri: http://localhost:8080/FIT-MAG/
2022-05-27 13:51:47,798 DEBUG [io.undertow.request.security] (default task-7) Authentication outcome was NOT_ATTEMPTED with method org.keycloak.adapters.wildfly.WildflyAuthenticationMechanism@45870dca for HttpServerExchange{ GET /FIT-MAG/ request {Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9], Accept-Language=[it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7,de;q=0.6], Cache-Control=[max-age=0], Sec-Fetch-Mode=[navigate], Accept-Encoding=[gzip, deflate, br], sec-ch-ua=[" Not A;Brand";v=“99”, “Chromium”;v=“101”, “Google Chrome”;v=“101”], sec-ch-ua-mobile=[?0], User-Agent=[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36], Sec-Fetch-User=[?1], Sec-Fetch-Dest=[document], Connection=[keep-alive], Sec-Fetch-Site=[none], sec-ch-ua-platform=[“Windows”], Cookie=[JSESSIONID=Ka3XGoB-7uUR3BlNZIR9M9jDlRq8oAvDD4XEopCi.siin020b], Upgrade-Insecure-Requests=[1], Host=[localhost:8080]} response {X-Powered-By=[Undertow/1], Server=[WildFly/10]}}
2022-05-27 13:51:47,799 DEBUG [io.undertow.request.security] (default task-7) Authentication outcome was NOT_ATTEMPTED with method io.undertow.security.impl.CachedAuthenticatedSessionMechanism@54fc4526 for HttpServerExchange{ GET /FIT-MAG/ request {Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9], Accept-Language=[it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7,de;q=0.6], Cache-Control=[max-age=0], Sec-Fetch-Mode=[navigate], Accept-Encoding=[gzip, deflate, br], sec-ch-ua=[" Not A;Brand";v=“99”, “Chromium”;v=“101”, “Google Chrome”;v=“101”], sec-ch-ua-mobile=[?0], User-Agent=[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36], Sec-Fetch-User=[?1], Sec-Fetch-Dest=[document], Connection=[keep-alive], Sec-Fetch-Site=[none], sec-ch-ua-platform=[“Windows”], Cookie=[JSESSIONID=Ka3XGoB-7uUR3BlNZIR9M9jDlRq8oAvDD4XEopCi.siin020b], Upgrade-Insecure-Requests=[1], Host=[localhost:8080]} response {X-Powered-By=[Undertow/1], Server=[WildFly/10]}}
2022-05-27 13:51:47,801 DEBUG [io.undertow.request.security] (default task-7) Authentication result was ATTEMPTED for HttpServerExchange{ GET /FIT-MAG/ request {Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9], Accept-Language=[it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7,de;q=0.6], Cache-Control=[max-age=0], Sec-Fetch-Mode=[navigate], Accept-Encoding=[gzip, deflate, br], sec-ch-ua=[" Not A;Brand";v=“99”, “Chromium”;v=“101”, “Google Chrome”;v=“101”], sec-ch-ua-mobile=[?0], User-Agent=[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36], Sec-Fetch-User=[?1], Sec-Fetch-Dest=[document], Connection=[keep-alive], Sec-Fetch-Site=[none], sec-ch-ua-platform=[“Windows”], Cookie=[JSESSIONID=Ka3XGoB-7uUR3BlNZIR9M9jDlRq8oAvDD4XEopCi.siin020b], Upgrade-Insecure-Requests=[1], Host=[localhost:8080]} response {X-Powered-By=[Undertow/1], Server=[WildFly/10]}}
2022-05-27 13:51:47,804 DEBUG [org.keycloak.adapters.AuthenticatedActionsHandler] (default task-7) Policy enforcement is disabled.
2022-05-27 13:51:47,805 DEBUG [org.apache.jasper.servlet] (default task-7) JspEngine → /index.jsp
2022-05-27 13:51:47,807 DEBUG [org.apache.jasper.servlet] (default task-7) ServletPath: /index.jsp
2022-05-27 13:51:47,816 DEBUG [org.apache.jasper.servlet] (default task-7) PathInfo: null
2022-05-27 13:51:47,817 DEBUG [org.apache.jasper.servlet] (default task-7) RealPath: C:\Wildfly-10.1.0\wildfly-10.1.0.Final\standalone\tmp\vfs\temp\temp6bc9a0830375f763\content-9fbdf668eff87079\index.jsp
2022-05-27 13:51:47,817 DEBUG [org.apache.jasper.servlet] (default task-7) RequestURI: /FIT-MAG/
2022-05-27 13:51:47,818 DEBUG [org.apache.jasper.servlet] (default task-7) QueryString: null