def _credentials_from_request(request):
<EOL>if (oauth2_settings.storage_model is None or<EOL>request.user.is_authenticated()):<EOL><INDENT>return get_storage(request).get()<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT>
Gets the authorized credentials for this flow, if they exist.