Code: Select all
auth_details = {
"usernname" : "fakeuser",
"password" : "fakepassword",
"grant_type" : "password",
}
uri = "https://secretserver.fakedomain.com/oauth2/token"
headers = { 'Accept': "application/json",
'Content-Type': "x-www-form-urlencoded",
}
response = requests.post(uri,data=auth_details,headers=headers)
< /code>
Dies resultiert in Antwort 406. Wenn ich versuche, den Inhalt der Antwort zu sehen: < /p>
Print(Response.Text)
Server Error
406 - Client browser does not accept the MIME type of the requested page.
The page you are looking for cannot be opened by your browser because it has a file name extension that your browser does not accept.
Please Wait
Secret Server is loading
< /code>
Ich hoffe, dass mir jemand hier helfen kann. Ich habe herum gesucht, kann aber nichts finden, was funktioniert hat. Der Link zu Delinea -Dokumenten ist https://updates.thycotic.net/secretserv ... g/apitoken
Ab diesem Punkt bin ich ein Verlust der Idee.