You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Client Version: v1.30.7
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.32.2-eks-bc803b4
WARNING: version difference between client (1.30) and server (1.32) exceeds the supported minor version skew of +/-1
I was trying to set up Git OAuth authentication for Airflow, but then I ran into an Invalid Login error whenever a user did not have a name field in user_data. This caused a 'NoneType' object has no attribute 'split' error in the authentication flow.
After investigation, I discovered that if the user_data["name"] is missing or None, the code attempts to call split() on None. The fix is to fall back to using the local part of the primary email address (the portion before the @) as the user's first name when user_data["name"] is unavailable.
I would like to suggest updating the documentation/FAQ to mention this behavior and provide a clear workaround or fix for those encountering this error. Below is a brief outline of the fix:
Retrieve the primary email address from the user's email data.
Check if user_data["name"] exists and is not None.
If it does not exist, use the local part of the email address (before @) as the user's first name.
This resolves the invalid login issue by ensuring we always have a fallback for the user’s name.
Relevant Logs
Custom Helm Values
The text was updated successfully, but these errors were encountered:
Checks
User-Community Airflow Helm Chart
.Chart Version
8.9.0
Kubernetes Version
Helm Version
Description
I was trying to set up Git OAuth authentication for Airflow, but then I ran into an Invalid Login error whenever a user did not have a name field in user_data. This caused a
'NoneType' object has no attribute 'split'
error in the authentication flow.After investigation, I discovered that if the user_data["name"] is missing or None, the code attempts to call split() on None. The fix is to fall back to using the local part of the primary email address (the portion before the @) as the user's first name when user_data["name"] is unavailable.
I would like to suggest updating the documentation/FAQ to mention this behavior and provide a clear workaround or fix for those encountering this error. Below is a brief outline of the fix:
Retrieve the primary email address from the user's email data.
Check if user_data["name"] exists and is not None.
If it does not exist, use the local part of the email address (before @) as the user's first name.
This resolves the invalid login issue by ensuring we always have a fallback for the user’s name.
Relevant Logs
Custom Helm Values
The text was updated successfully, but these errors were encountered: