0

https://www.ibm.com/support/knowledgecenter/SSBS6K_2.1.0/apis/auth_manage_api.html

I try to use the API for common user integrated with OIDC, but the error msg shows:

{"error_description":"invalid_resource_owner_credential","error":"server_error"}

command as the following

curl -k -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" -d "grant_type=password&username=abc\@test\.com&password=ChangeMe\!\@\#&scope=openid" https://<cluster_access_ip>:8443/idprovider/v1/auth/identitytoken --insecure

But it is working fine for the administrator: admin/admin, so strange.

Levi Moreira
  • 11,917
  • 4
  • 32
  • 46
steve
  • 1

2 Answers2

1

Issue is with the special character "!" which is used for history expansions in command line prompt. You can use below command which works...

curl -k -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" -d "grant_type=password&username=abc@test.com&password=ChangeMe"'!'"@#&scope=openid" https://<cluster_access_ip>:8443/idprovider/v1/auth/identitytoken --insecure

0

Have you configured the LDAP, created Teams and added users to the team? Did you check the logs on Master node /var/log/containers for platform-identity-manager, _platform-auth-service, *platform-identity-provider?

Dockers
  • 1
  • 2