I am trying to register a new OAuth client in our SAS Viya 3.5 environment using the following command:
curl -k -X POST "
https://Host_Name/SASLogon/oauth/clients" \
-u "sas:xxxxxxxx" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"client_id": "myapi",
"client_secret": "Admin@12345",
"scope": ["openid"],
"authorized_grant_types": ["client_credentials", "refresh_token"]
}'
However, I am consistently receiving the below error:
{"error":"unauthorized","error_description":"Full authentication is required to access this resource"}