PYTHON-6016ClosedDone

Consolidate auth helper methods into auth_shared.py

The {{_AuthContext, _ScramContext, _X509Context, _password_digest}} classes/methods in {{pymongo/asynchronous/auth.py}} can be lifted into {{pymongo/auth_shared.py}} directly. {{_OIDCContext}} can also be lifted by refactoring + lifting {{_get_authenticator}} from {{pymongo/asynchronous/auth_oidc.py}} to take the specific {{_OIDCAuthenticator}} class to construct as a parameter, passed in through a {{functools.partial}} call in {{_SPECULATIVE_AUTH_MAP}}.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.