Make authentication state available during API test setup.
Review Request #13377 — Created Oct. 25, 2023 and submitted
This updates the authentication pathway to make the API token, OAuth2
token, and OAuth2 application available to any callers of the new API
test state setup functions. This will allow some test setup code to
access these objects as part of the upcoming queryset assertions.
Unit tests pass.
Made use of these in some in-progress changes.