constant for body limit

This commit is contained in:
Taylor Wilsdon
2025-08-13 10:20:35 -04:00
parent 6d8e4c2ca6
commit c767aa2357
3 changed files with 215 additions and 163 deletions

View File

@@ -212,7 +212,7 @@ class OAuthConfig:
store = get_oauth21_session_store()
if store.has_session(authenticated_user):
return "oauth21"
except Exception:
except (ImportError, AttributeError, RuntimeError):
pass # Fall back to OAuth 2.0 if session check fails
# For public clients in OAuth 2.1 mode, we require PKCE