Skip to content

Commit

Permalink
Add base_url environment variable detection to context authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
jshcodes committed Jul 15, 2024
1 parent 435edf7 commit d737a03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/falconpy/_auth_object/_falcon_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ def __init__(self,
if cvar.cs_cloud:
self._config.base_url = confirm_base_url(cvar.cs_cloud)
except AttributeError:
pass
if self.token_value:
self._config.base_url = confirm_base_url(os.getenv(f"CS_CLOUD", "auto"))
self._auth_style = "CONTEXT"
break
except AttributeError:
Expand Down

0 comments on commit d737a03

Please sign in to comment.