jakubgs commented on issue #14829:
URL: https://github.com/apache/airflow/issues/14829#issuecomment-800158766


   The difference with a user that can log in without a redirec loop is that 
after logging in the `/home` path doesn't return `302`:
   ```
   DEBUG - Provider: github
   DEBUG - Going to call authorize for: github
   "GET /login/github?next=https://airflow.example.org/home HTTP/1.0" 302 945 
"https://airflow.example.org/login/?next=https%3A%2F%2Fairflow.example.org%2Fhome";
   DEBUG - Authorized init
   DEBUG - OAUTH Authorized resp: {'access_token': '123qwe123qwe', 
'token_type': 'bearer', 'scope': 'read:org,user:email'}
   DEBUG - User info retrieved from github: {'username': 'jakubgs', 'email': 
'[email protected]', 'first_name': 'Jakub', 'last_name': '', 'role_keys': 
['devs', 'devops']}
   DEBUG - No whitelist for OAuth provider
   INFO - Updated user Airflow Admin
   "GET /oauth-authorized/github?code=123qwe&state=123qwe123qwe HTTP/1.0" 302 
279 "https://airflow.example.org/";
   "GET /home HTTP/1.0" 200 56814
   ```


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to