Skip to content

Commit

Permalink
refactor: change terminology from 'plugin' to 'mechanism' #350
Browse files Browse the repository at this point in the history
- This just keeps the terminology in line with what we use in DataGateway API and more generally within ICAT
  • Loading branch information
MRichards99 committed Mar 29, 2022
1 parent 78d76c1 commit 4a92ac0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion datagateway_api/config.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"extension": "/search-api",
"icat_url": "https://localhost:8181",
"icat_check_cert": false,
"plugin": "anon",
"mechanism": "anon",
"username": "",
"password": ""
},
Expand Down
2 changes: 1 addition & 1 deletion datagateway_api/src/common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class SearchAPI(BaseModel):
extension: StrictStr
icat_check_cert: StrictBool
icat_url: StrictStr
plugin: StrictStr
mechanism: StrictStr
username: StrictStr
password: StrictStr

Expand Down
2 changes: 1 addition & 1 deletion datagateway_api/src/search_api/session_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def wrapper_client_manager(*args, **kwargs):
except ICATSessionError as e:
log.debug("Current client session expired: %s", e.args)
SessionHandler.client.login(
Config.config.search_api.plugin,
Config.config.search_api.mechanism,
{
"username": Config.config.search_api.username,
"password": Config.config.search_api.password,
Expand Down

0 comments on commit 4a92ac0

Please sign in to comment.