07-12-2024 06:45 AM
Hi Cisco Team,
I'm trying to do some API tests with the Catalyst Centers Sandboxes. Unfortunatelly both ( https://sandboxdnac.cisco.com and https://sandboxdnac2.cisco.com ) seems not permitting any access anymore. I now get the error messages : {'error': 'Base64 Authorization is not allowed'}
It'd very benefical if this will be restored, are they in maintenance ? Only GUI is nice but especially for some advanced testing API's would be very helpful. Has something changed there ? I'm quite sure that some days ago it worked.
Many thanks!
Uwe
Solved! Go to Solution.
07-23-2024 10:56 AM
AES encryption for authentication on both sandbox dnac and dnac2 is disabled. Please keep in mind that users have ability to enable it with AES Key.
07-12-2024 07:02 AM
@uher01 what testing are you trying to do, the always on devices only accept read/get request. Can you share your method/code authentication?
07-12-2024 07:29 AM
Hi @bigevilbeard - I'm also seeing this error (first time ever using so not confirmed working previously for me). When i use POST - https://sandboxdnac.cisco.com/dna/system/api/v1/auth/token along with creds in header I get a 502 bad gateway error. When using POST - https://sandboxdnac2.cisco.com/dna/system/api/v1/auth/token i get an error;
07-12-2024 08:02 AM
@dannyboy1982 @uher01 sandboxdnac i get bad gateway on the UI and API for sandboxdnac2.. i get the same as yall, but i can access the UI ok. So must be a sandbox issue
❯ curl -s -X POST https://sandboxdnac2.cisco.com/dna/system/api/v1/auth/token -H "Authorization: Basic ZGV2bmV0dXNlcjpDaXNjbzEyMyE="
{"error":"Base64 Authorization is not allowed"}
07-12-2024 07:31 AM
Hi bigevilbeard,
thanks for your quick response. It stops very basically. I'm not able to retrive any token.
def get_dnac_token():
USERNAME = dnac["user"]
PASSWORD = dnac["passwd"]
BASE_URL = "https://"+dnac["host"]
AUTH_URL = '/dna/system/api/v1/auth/token'
response = requests.post(BASE_URL + AUTH_URL,
auth=HTTPBasicAuth(USERNAME, PASSWORD),
verify=False)
print(response.json())
#token = response.json()['Token']
#return token
07-12-2024 07:43 AM - edited 07-12-2024 07:44 AM
I too am unable to get anything and I get an bad gateway when trying https://sandboxdnac.cisco.com from Http I was able to get a token from Wednesday, I believe but not since then I can't doing anything for 2 either for a token however HTTPS works on the second one
07-15-2024 02:05 PM
AES encryption is on and appears to disable base64 auth method. Not sure who to contact to change this setting
07-15-2024 02:34 PM - edited 07-15-2024 03:04 PM
You will either have to contact someone with admin permissions for your Catalyst Center to have this changed, or start using the enabled AES encryption.
NOTE: Making changes to this will break authentication for existing applications that are using AES encryption for authentication.
07-16-2024 01:52 AM
As this is read only for user, guessing only an admin can change this - @jokearns1
07-17-2024 01:18 AM
This service now appears back up - I'm able to retrieve an auth token today
07-17-2024 03:02 AM
unfortunatelly obviously only temporary, still get {'error': 'Base64 Authorization is not allowed'}
07-19-2024 01:59 AM - edited 07-19-2024 07:44 AM
it seems https://sandboxdnac.cisco.com is now restored. REST-API is currently functional with this box. https://sandboxdnac2.cisco.com is still responding with {'error': 'Base64 Authorization is not allowed'}. Hope that at least for one sandbox function will remain.
07-23-2024 10:56 AM
AES encryption for authentication on both sandbox dnac and dnac2 is disabled. Please keep in mind that users have ability to enable it with AES Key.
07-23-2024 01:43 PM
hey i got your point and you can direct contact with website taker in Instagram through this website enjoy it. https://iiganony.com/
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide