Skip to content

Commit 088e375

Browse files
improvements for Confluence 8.5
1 parent 796b646 commit 088e375

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/util/api/confluence_clients.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def get_groups_membership(self, username):
192192

193193
def get_system_info_page(self):
194194
login_url = f'{self.host}/dologin.action'
195-
auth_url = f'{self.host}/admin/websudo.action'
195+
auth_url = f'{self.host}/doauthenticate.action'
196196
tsv_auth_url = f'{self.host}/rest/tsv/1.0/authenticate'
197197
tsv_login_body = {
198198
'username': self.user,
@@ -202,9 +202,9 @@ def get_system_info_page(self):
202202
}
203203

204204
auth_body = {
205-
'webSudoDestination': '/admin/systeminfo.action',
206-
'webSudoIsPost': False,
207-
'webSudoPassword': self.password
205+
'authenticate': 'Confirm',
206+
'destination': '/admin/systeminfo.action',
207+
'password': self.password,
208208
}
209209

210210
login_page_response = self.session.get(login_url)
@@ -219,8 +219,8 @@ def get_system_info_page(self):
219219
else:
220220
self.session.post(url=tsv_auth_url, json=tsv_login_body)
221221

222-
auth_body['atl_token'] = self.session.cookies.get_dict()['atlassian.xsrf.token']
223-
system_info_html = self.session.post(url=auth_url, data=auth_body, verify=self.verify)
222+
system_info_html = self.session.post(url=auth_url, data=auth_body, headers={'X-Atlassian-Token': 'no-check'}, verify=self.verify)
223+
print(system_info_html.content.decode("utf-8"))
224224
return system_info_html.content.decode("utf-8")
225225

226226
def get_deployment_type(self):

0 commit comments

Comments
 (0)