Skip to content

Commit

Permalink
Issue #187/196 openeo.connect support auto-authentication from config
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Mar 25, 2022
1 parent 63690e7 commit dbc6c24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openeo/rest/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,8 @@ def connect(
if not url:
raise OpenEoClientException("No back-end URL given or known to connect to.")
connection = Connection(url, session=session, default_timeout=default_timeout)

auth_type = auth_type or get_config().get("connection.auto_authenticate.type")
auth_type = auth_type.lower() if isinstance(auth_type, str) else auth_type
if auth_type in {None, 'null', 'none'}:
pass
Expand Down

0 comments on commit dbc6c24

Please sign in to comment.