fix: change session_auth_result value to n/a

Changes one of the values of the custom attribute
session_auth_result from 'skipped' to 'n/a'.
This commit is contained in:
Robert Raposa
2023-08-21 14:42:30 -04:00
parent 3f20c75043
commit c9734e3399

View File

@@ -23,10 +23,10 @@ class DefaultSessionAuthentication(SessionAuthentication):
if user_and_auth:
# .. custom_attribute_name: session_auth_result
# .. custom_attribute_description: The result of session auth, represented
# by: 'success', 'failure', or 'skipped'.
# by: 'success', 'failure', or 'n/a'.
set_custom_attribute('session_auth_result', 'success')
else:
set_custom_attribute('session_auth_result', 'skipped')
set_custom_attribute('session_auth_result', 'n/a')
return user_and_auth
except Exception as exception:
set_custom_attribute('session_auth_result', 'failure')