Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNAC 2.3.5 now supports AES Encrypted Authentication -- authorization header field needs updated #119

Open
3 tasks done
jhawker09 opened this issue Jul 14, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jhawker09
Copy link

jhawker09 commented Jul 14, 2023

Prerequisites

  • Have you tested the operation in the API directly?
  • Do you have the latest SDK version?
  • Review the compatibility matrix before opening an issue.

Describe the bug
Access token fails when using AES Encrypted Authentication, currently encoded_auth accepts base64 and authentication.py prepends b'Basic ' to encoded_auth in the request header. Likely need an additional arg for if AES encryption is enabled to NOT prepend b'Basic'.

Expected behavior
If using AES Encrypted Authentication, DNAC accepts the following string: "CSCO-AES-256 credentials=Base64Encode(AESEncrypt(username:password , aes256 key))"
Source: https://developer.cisco.com/docs/dna-center/#!authentication-and-authorization/aes-key-encryption
Final encoded_auth string should look like this (i.e. does not contain "Basic"): "CSCO-AES-256 credentials=[Base64 encoded AES encrypted username:password pair]"

Environment (please complete the following information):

  • Cisco DNA Center Version and patch: Version 2.3.5.3-70194
  • Python version: 3.11.4
  • SDK version: dnacentersdk==2.6.5
  • OS Version: MacOS 13.4.1
@fmunozmiranda fmunozmiranda added the enhancement New feature or request label Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants