By: Hamdi Bahrini user 12 Mar 2020 at 11:40 p.m. CDT

1 Response
Hamdi Bahrini gravatar
Hello community, im trying to send curl request to an openid connect client but im getting 302 error. i dont know if the problem is in the client configuration or in the request parameters. the curl command ``` curl -i -d scope=openid \ --data-urlencode client_id=$(awk -F= '/^client_id=/ { print $2 }' /etc/raddb/mods-config/oauth2/oauth2-config) \ --data-urlencode client_secret=$(awk -F= '/^client_secret=/ { print $2 }' /etc/raddb/mods-config/oauth2/oauth2-config) \ -d grant_type=authorization_code \ -d username=admin \ --data-urlencode password=admin \ -d response_type=id_token \ --data-urlencode redirect_uri=https://gluu-testserver/identity/home \ https://gluu-testserver/oxauth/restv1/authorize -k ``` the response ``` HTTP/1.1 302 Found Date: Fri, 13 Mar 2020 04:29:12 GMT Server: Jetty(9.4.12.v20180830) X-Xss-Protection: 1; mode=block X-Content-Type-Options: nosniff Strict-Transport-Security: max-age=31536000; includeSubDomains Location: https://gluu-testserver/identity/home#error_description=The+request+is+missing+a+required+parameter%2C+includes+an+unsupported+parameter+or+parameter+value%2C+or+is+otherwise+malformed.&error=invalid_request Content-Length: 0 Connection: close ```

By Hamdi Bahrini user 13 Mar 2020 at 7:02 p.m. CDT

Hamdi Bahrini gravatar
I think i was sending the request to the wrong endpoint, it works with the /oxauth/restv1/token