File tree Expand file tree Collapse file tree 3 files changed +1
-12
lines changed Expand file tree Collapse file tree 3 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -322,11 +322,6 @@ def from_key(key: typing.Optional[str]) -> Auth:
322
322
Parameters:
323
323
key: Planet API key
324
324
"""
325
- warnings .warn (
326
- "Planet API keys will be deprecated for most use cases."
327
- " Initialize an OAuth client, or create an OAuth service account."
328
- " Proceeding for now." ,
329
- PendingDeprecationWarning )
330
325
if not key :
331
326
raise APIKeyAuthException ('API key cannot be empty.' )
332
327
Original file line number Diff line number Diff line change @@ -131,12 +131,6 @@ def test_Auth_from_env_alternate_doesnotexist(monkeypatch):
131
131
132
132
133
133
def test_Auth_from_login (monkeypatch ):
134
- # auth.AuthClient has been completely removed
135
- # in the conversion to planet_auth
136
- # def login(*args, **kwargs):
137
- # return {'api_key': auth_data}
138
- #
139
- # monkeypatch.setattr(auth.AuthClient, 'login', login)
140
134
with pytest .raises (DeprecationWarning ):
141
135
_ = auth .Auth .from_login ('email' , 'pw' )
142
136
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ async def test_CliSession_auth_valid(test_valid_secretfile):
73
73
received_request = route .calls .last .request
74
74
# The planet_auth library sends the api key as bearer token.
75
75
# The older Planet SDK sent it as HTTP basic.
76
- # Most Planet APIs accept either (and API keys are being deprecated.)
76
+ # Most Planet APIs accept either.
77
77
# credentials = received_request.headers['authorization'].strip(
78
78
# 'Authorization: Basic ')
79
79
# assert base64.b64decode(credentials) == b'clisessiontest:'
You can’t perform that action at this time.
0 commit comments