@@ -49,7 +49,7 @@ async def _generate_oauth_access_token(self) -> None:
4949 Context .cms_oauth_client_id , Context .cms_oauth_client_secret
5050 ),
5151 timeout = Context .requests_timeout ,
52- check_name = "zimfarm -api-authentication" ,
52+ check_name = "cms -api-authentication" ,
5353 )
5454 if response .json :
5555 self ._access_token = cast (str , response .json ["access_token" ])
@@ -58,7 +58,7 @@ async def _generate_oauth_access_token(self) -> None:
5858 )
5959
6060 async def _generate_local_access_token (self ) -> None :
61- check_name = "zimfarm -api-authentication"
61+ check_name = "cms -api-authentication"
6262 if self ._refresh_token :
6363 response = await query_api (
6464 f"{ Context .cms_api_url } /auth/refresh" ,
@@ -135,13 +135,13 @@ async def authenticate() -> Result[Token]:
135135 f"{ Context .cms_api_url } /auth/me" ,
136136 method = "GET" ,
137137 headers = {"Authorization" : f"Bearer { token .access_token } " },
138- check_name = "zimfarm -api-authentication" ,
138+ check_name = "cms -api-authentication" ,
139139 )
140140
141141 if response .success :
142142 logger .debug (
143143 f"Authentication successful using { Context .auth_mode } mode" ,
144- extra = {"checkname" : "zimfarm -api-authentication" },
144+ extra = {"checkname" : "cms -api-authentication" },
145145 )
146146
147147 return Result (
0 commit comments