But this does not work. When i try to request a token with the way they refer to (Authenticate user by generating a JSON Web Token (JWT)) It just complains that my header lacks "authentication" headers.
{'code': 'SAE-080003',
'details': {'additionalErrors': [],
'additionalInfo': {},
'detailedDescription': '',
'responseAction': ''},
'message': "We couldn't continue with this authorization key. Enter a new "
'key, then try again.',
'type': 'ERROR'}
None of the methods work and the documentation seems to be wrong about sending the credentials via the body since it only seems to care about my authentication header.
To summarize my main questions. 1. Which method is the right one? 2. What am i missing? 3. In the first method the secret key in the jwt.encode(key=?).. Where do i get that from or what is that? Im not familiar with jwt's..
Looking at the configuration, and since you are trying to specify using an AD account instead of local, you will need to leave domain out entirely for local.
So you just need to change this part to this
"domain": "https://dell.to/3VB8A9D"
Let me know if this helps.
DELL-Chris H
Social Media and Communities Professional
Dell Technologies | Enterprise Support Services
#IWork4Dell
Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!
We have an ldap with the displayname "company.com" So i can not authenticate using local. When we log in with the webui. Then i choose the LDAP-company.com domain.
I have tried using a local account without a domain but that does not work either.
DELL-Chris H
7 Practitioner
•
9682 Posts
•
48046 Points
743
0
Posted October 20th, 2022 13:00
Andrija,
What you can do is try manually running cURL
For example.
[root@localhost ~]# Auth=$(curl -k -d '{"username":"admin","password":"password"}' -H 'Content-Type: application/json' https://SCG:5700/SupportAssist/api/v2/auth/token 2>/dev/null | grep "accessToken" | head -1)
[root@localhost ~]# echo $Auth
"accessToken" : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiwicm9sZSI6IlNDR0FkbWlucyIsInJlcXVlc3RpbmdJUCI6IjEwMC45Mi4yMDQuMjI0IiwiYXBwTW9kZSI6IkFQUExJQU5DRVMiLCJhcGlVc2FnZU1vZGUiOiJSZXN0IiwiaW5zdGFuY2VJRCI6ImI1dk1IbC9iRk5Ld0FmMkpqQUpzQjRURXVxQURsZmF5NGVHWHNXNWZOUDl0WFpPYVhzemdCS0c0YXdJdlU1OEpWUXdxbnVpNnpDNnRLWkpWeVE1UWVRPT0iLCJ0b2tlblR5cGUiOiJBQ0NFU1MiLCJ1dWlkIjoiNTE1OTcwZGItMjVjMi00YmY1LWIwNDQtZWE2NmE0MGNlNGJhIiwiaWF0IjoxNjY2MTk1OTk4LCJleHAiOjE2NjYxOTc3OTh9.jT2W1LfDfK--DRHvGMATQ1Nh_cIm9wHqMbxCpLMg1ok",
DELL-Chris H
Social Media and Communities Professional
Dell Technologies | Enterprise Support Services
#IWork4Dell
Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!