Skip to content

Commit

Permalink
only verify if scan file is present
Browse files Browse the repository at this point in the history
  • Loading branch information
adminy committed Jul 23, 2024
1 parent 9873919 commit faf4a0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openconnect_sso/authenticator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import attr
import structlog
from lxml import etree, objectify

from pathlib import Path
from openconnect_sso.saml_authenticator import authenticate_in_browser
from openconnect_sso.ssl import requests, ssl_verification

Expand Down Expand Up @@ -50,8 +50,8 @@ async def authenticate(self, display_mode):
sso_token = await self._authenticate_in_browser(
auth_request_response, display_mode
)

self._complete_csd(auth_request_response)
if self._scan_file and Path(self._scan_file).is_file():
self._complete_csd(auth_request_response)

response = self._complete_authentication(auth_request_response, sso_token)
if not isinstance(response, AuthCompleteResponse):
Expand Down

0 comments on commit faf4a0f

Please sign in to comment.