Skip to content

Commit 24e22f9

Browse files
committed
oops
1 parent 40a2319 commit 24e22f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openc3/lib/openc3/utilities/authentication.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def token(include_bearer: true)
5151
end
5252

5353
def _make_auth_request(password)
54-
Faraday.new.post(_generate_auth_url, '{"token": "' + password + '"}', {'Content-Type' => 'application/json'})
54+
Faraday.new.post(_generate_auth_url, '{"password": "' + password + '"}', {'Content-Type' => 'application/json'})
5555
end
5656

5757
def _generate_auth_url

openc3/python/openc3/utilities/authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(self):
3838
if not password:
3939
raise OpenC3AuthenticationError("Authentication requires environment variable OPENC3_API_PASSWORD")
4040
self.service = password == OPENC3_SERVICE_PASSWORD
41-
response = Session().post(self._generate_auth_url(), json={"token": password}, headers={"Content-Type": "application/json"})
41+
response = Session().post(self._generate_auth_url(), json={"password": password}, headers={"Content-Type": "application/json"})
4242
self._token = response.text
4343
if not self._token:
4444
raise OpenC3AuthenticationError("Authentication failed. Please check the password in the environment variable OPENC3_API_PASSWORD")

0 commit comments

Comments
 (0)