wofr opened a new issue, #8125:
URL: https://github.com/apache/apisix/issues/8125

   ### Description
   
   We are using apisix togehter with Keycloak.  We have created a route (see 
below).  Basically it works fine but usually when we load the page the first 
time the content after we get redirected from keycloak back get only partial 
loaded, see screenshot below.
   
   When I do reload of the page the whole content is loaded, sometimes it even 
loads the whole content directly after we get redirected from keycloak.  The 
behaviour is observed on differnt browsers (chrome, firefox).  
   
   When removing the authentication redirection to keycloak, we do not observe 
any prolems when loading the web-content.
   Now I'm wondering what causes this problem when loading the page the first 
time? Any help welcome!!
   
   
![grafik](https://user-images.githubusercontent.com/2195242/196641789-ab6a4552-2b65-4fbf-9ccc-31ca83a3bfed.png)
   
   
   
   ApiSixRoute
   ```
   `apiVersion: apisix.apache.org/v2beta3
   kind: ApisixTls
   metadata:
     name: tracs-route-workflow-orchestrator
   #  namespace: apisix
   spec:
     hosts:
     - dagster-dev.***************
     secret:
       name: {{ .Values.ingressSecret }}
       namespace: apisix
   ---
   # Define the route to access the backend
   apiVersion: apisix.apache.org/v2beta3
   kind: ApisixRoute
   metadata:
     name: tracs-route-workflow-orchestrator
   #  namespace: apisix
   spec:
     http:
     - name: tracs-route-workflow-orchestrator
       match:
         paths:
         - /*
         - /graphql
         hosts:
         - dagster-dev***************
       backends:
       - serviceName: {{ .Values.service }}
         servicePort: {{ .Values.appPort }}
       websocket: true
       
       plugins:
        - name: cors
          enable: true
        - name: redirect
          enable: true
          config:
            http_to_https: true       
        - name: openid-connect
          enable: true
          config:
            bearer_only: false
            client_id: "apisix"
            client_secret: "************"
            disable: false
            discovery: 
"https://keycloak-dev.****************/realms/apisix_test_realm/.well-known/openid-configuration";
            realm: "apisix_test_realm"
            redirect_uri: "/callback"
            scope: "openid profile"         
   ```
   
   ### Environment
   
   ### Environment
   
   - APISIX version (run `apisix version`): 
/usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua version 2.15.0
   - Operating system (run `uname -a`): Linux apisix-6dffdc8545-jn8sp 5.10.127+ 
#1 SMP Sat Jul 16 08:53:19 UTC 2022 x86_64 Linux
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): nginx 
version: openresty/1.21.4.1 built by gcc 10.3.1 20210424 Alpine 
10.3.1_git20210424) built with OpenSSL 1.1.1g  21 Apr 2020
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):  3.4.14
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to