File tree Expand file tree Collapse file tree 4 files changed +3
-26
lines changed Expand file tree Collapse file tree 4 files changed +3
-26
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
11
11
### Fixed
12
12
- Fixed Sphinx autodoc skipping class methods with custom decorators. [ #518 ] ( https://github.com/IN-CORE/pyincore/issues/518 )
13
13
14
+ ### Changed
15
+ - Remove unused insecure IN-CORE client [ #581 ] ( https://github.com/IN-CORE/pyincore/issues/581 )
16
+
14
17
### Added
15
18
- Apply Black formatter [ #589 ] ( https://github.com/IN-CORE/pyincore/issues/589 )
16
19
Original file line number Diff line number Diff line change @@ -575,8 +575,6 @@ client
575
575
:members:
576
576
.. autoclass :: client.IncoreClient
577
577
:members:
578
- .. autoclass :: client.InsecureIncoreClient
579
- :members:
580
578
581
579
dataservice
582
580
===========
Original file line number Diff line number Diff line change 8
8
# The order of import matters. You need to import module by order of dependency
9
9
from pyincore .client import Client
10
10
from pyincore .client import IncoreClient
11
- from pyincore .client import InsecureIncoreClient
12
11
from pyincore .hazardservice import HazardService
13
12
from pyincore .utils .expressioneval import Parser
14
13
from pyincore .utils .cge_ml_file_util import CGEMLFileUtil
Original file line number Diff line number Diff line change @@ -451,26 +451,3 @@ def clear_cache(self):
451
451
# clear entry from service.json
452
452
update_hash_entry ("edit" , hashed_url = self .hashed_service_url )
453
453
return
454
-
455
-
456
- class InsecureIncoreClient (Client ):
457
- """IN-CORE service client class that bypasses Ambassador auth. It contains token and service root url.
458
-
459
- Args:
460
- service_url (str): Service url.
461
- username (str): Username string.
462
-
463
- """
464
-
465
- def __init__ (self , service_url : str = None , username : str = None ):
466
- super ().__init__ ()
467
- if service_url is None or len (service_url .strip ()) == 0 :
468
- service_url = pyglobals .INCORE_API_PROD_URL
469
- self .service_url = service_url
470
- if username is None or len (username .strip ()) == 0 :
471
- self .session .headers [
472
- "x-auth-userinfo"
473
- ] = pyglobals .INCORE_LDAP_TEST_USER_INFO
474
- else :
475
- user_info = '{"preferred_username": "' + username + '"}'
476
- self .session .headers ["x-auth-userinfo" ] = user_info
You can’t perform that action at this time.
0 commit comments