Skip to content

Commit 5a6c7b2

Browse files
committed
add files
1 parent ff573ef commit 5a6c7b2

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

pymongo/synchronous/auth_oidc.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ class _OIDCAuthenticator:
8787
def reauthenticate(self, conn: Connection) -> Optional[Mapping[str, Any]]:
8888
"""Handle a reauthenticate from the server."""
8989
# Invalidate the token for the connection.
90-
print("reauthenticating")
9190
self._invalidate(conn)
9291
# Call the appropriate auth logic for the callback type.
9392
if self.properties.callback:
@@ -100,15 +99,10 @@ def authenticate(self, conn: Connection) -> Optional[Mapping[str, Any]]:
10099
# If it succeeded, we are done.
101100
ctx = conn.auth_ctx
102101
if ctx and ctx.speculate_succeeded():
103-
print("spec auth succeeded")
104102
resp = ctx.speculative_authenticate
105103
if resp and resp["done"]:
106104
conn.oidc_token_gen_id = self.token_gen_id
107105
return resp
108-
elif ctx:
109-
print("spec auth failed")
110-
else:
111-
print("no spec auth")
112106

113107
# If spec auth failed, call the appropriate auth logic for the callback type.
114108
# We cannot assume that the token is invalid, because a proxy may have been

test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
set -e
2-
for i in {1..10}; do
2+
for i in {1..30}; do
33
bash .evergreen/run-mongodb-oidc-remote-test.sh
44
done

0 commit comments

Comments
 (0)