File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,7 @@ def __init__(self, **config):
40
40
self ._next_token = self ._client_ctx .step (None )
41
41
42
42
def auth_bytes (self ):
43
- # GSSAPI Auth does not have a final broker->client message
44
- # so mark is_done after the final auth_bytes are provided
45
- # in practice we'll still receive a response when using SaslAuthenticate
46
- # but not when using the prior unframed approach.
47
- if self ._client_ctx .complete :
48
- self ._is_done = True
43
+ if self ._is_done :
49
44
self ._is_authenticated = True
50
45
return self ._next_token or b''
51
46
@@ -75,6 +70,11 @@ def receive(self, auth_bytes):
75
70
]
76
71
# add authorization identity to the response, and GSS-wrap
77
72
self ._next_token = self ._client_ctx .wrap (b'' .join (message_parts ), False ).message
73
+ # GSSAPI Auth does not have a final broker->client message
74
+ # so mark is_done after the final token is generated
75
+ # in practice we'll still receive a response when using SaslAuthenticate
76
+ # but not when using the prior unframed approach.
77
+ self ._is_done = True
78
78
79
79
def is_done (self ):
80
80
return self ._is_done
You can’t perform that action at this time.
0 commit comments