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:
322322 Parameters:
323323 key: Planet API key
324324 """
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 )
330325 if not key :
331326 raise APIKeyAuthException ('API key cannot be empty.' )
332327
Original file line number Diff line number Diff line change @@ -131,12 +131,6 @@ def test_Auth_from_env_alternate_doesnotexist(monkeypatch):
131131
132132
133133def 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)
140134 with pytest .raises (DeprecationWarning ):
141135 _ = auth .Auth .from_login ('email' , 'pw' )
142136
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ async def test_CliSession_auth_valid(test_valid_secretfile):
7373 received_request = route .calls .last .request
7474 # The planet_auth library sends the api key as bearer token.
7575 # 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.
7777 # credentials = received_request.headers['authorization'].strip(
7878 # 'Authorization: Basic ')
7979 # assert base64.b64decode(credentials) == b'clisessiontest:'
You can’t perform that action at this time.
0 commit comments