Skip to content

Commit

Permalink
[Confluence] Fix to ensure service auth continues working after oauth…
Browse files Browse the repository at this point in the history
… support added
  • Loading branch information
scottmx81 committed Sep 24, 2024
1 parent 012cb42 commit b7d37ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion confluence/provider/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@

def search(body):
logger.debug(f'Search request: {body["query"]}')
access_token = get_access_token()

if access_token == app.config.get("CONNECTOR_API_KEY", None):
access_token = None

try:
data = provider.search(body["query"], get_access_token())
data = provider.search(body["query"], access_token)
logger.info(f"Found {len(data)} results")
except UpstreamProviderError as error:
logger.error(f"Upstream search error: {error.message}")
Expand Down

0 comments on commit b7d37ea

Please sign in to comment.