antonio-tg opened a new issue, #26095:
URL: https://github.com/apache/superset/issues/26095

   I'm working with Apache Superset in an Openshift cluster and authentication 
with Azure Active Directory, all looks good, but I can't autenticate and I 
don't know why.
   
   #### How to reproduce the bug
   
   Apache Superset 2.1.1
   OCP: 4.12.25
   Kubernetes: v1.25.11
   
   ### Expected results
   
   Enter the application, in fact with an old version of Apache Superset it 
works without problem.
   
   ### Actual results
   
   I can't enter to the application
   
   #### Screenshots
   
   
![](https://github.com/apache/superset/assets/67483811/91360578-c982-4f9b-968a-ffc3fbd75e29)
   
   ### Environment
   
   - browser type and version: Google Chrome 119.0.6045.159 
   - superset version: 2.1.1
   - python version: 3.8.18
   
   ### Checklist
   
   The logs show
   ```logs
   10.15.9.149 - - [24/Nov/2023:22:20:08 +0000] "GET 
/static/appbuilder/js/ab.js HTTP/1.1" 200 896 
"https://supersetuat.***************/login/"; "Mozilla/5.0 (Windows NT 10.0; 
Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 
Safari/537.36"
   [2023-11-24 22:20:08 +0000] [185] [ERROR] Error handling request
   Traceback (most recent call last):
     File "/usr/local/lib/python3.8/site-packages/gunicorn/workers/gthread.py", 
line 326, in handle_request
       resp.write_file(respiter)
     File "/usr/local/lib/python3.8/site-packages/gunicorn/http/wsgi.py", line 
385, in write_file
       if not self.sendfile(respiter):
     File "/usr/local/lib/python3.8/site-packages/gunicorn/http/wsgi.py", line 
375, in sendfile
       self.sock.sendfile(respiter.filelike, count=nbytes)
     File "/usr/local/lib/python3.8/socket.py", line 482, in sendfile
       return self._sendfile_use_sendfile(file, offset, count)
     File "/usr/local/lib/python3.8/socket.py", line 346, in 
_sendfile_use_sendfile
       self._check_sendfile_params(file, offset, count)
     File "/usr/local/lib/python3.8/socket.py", line 460, in 
_check_sendfile_params
       raise ValueError(
   ValueError: count must be a positive integer (got 0)
   10.15.9.151 - - [24/Nov/2023:22:20:08 +0000] "GET 
/static/assets/8047.303867f305db6e4fcadc.entry.js HTTP/1.1" 200 17811 
"https://supersetuat.*************/login/"; "Mozilla/5.0 (Windows NT 10.0; 
Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 
Safari/537.36"
   ```
   
   My  configuration in the values file is:
   ```yml
       OAUTH_PROVIDERS = [
           {
               "name": "azure",
               "icon": "fa-windows",
               "token_key": "access_token",
               "remote_app": {
                   "client_id": "***********************************",
                   "client_secret": "***********************************",
                   "api_base_url": "https://graph.microsoft.com/v1.0/";,
                   "client_kwargs": {"scope": "User.read openid", "resource": 
"***********************************"},
                   "request_token_url": None,
                   "access_token_url": 
"https://login.microsoftonline.com/***********************************/oauth2/token";,
                   "authorize_url": 
"https://login.microsoftonline.com/***********************************/oauth2/authorize";
 #,
                   #"authorize_params": {"hd": os.getenv("OAUTH_HOME_DOMAIN", 
"")}
               }
           }
       ]
   ```
   ### Additional context
   
   Nothing else to say.
   


-- 
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...@superset.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to