By: Hamdi Bahrini user 16 Mar 2020 at 9:23 p.m. CDT

3 Responses
Hamdi Bahrini gravatar
Im working on a POC. Im trying to send authentication request from a perl module installed in a freeradius server to the authorization endpoint (im using curl command in my tests). Im using the implicit flow to do it but it doesnt work. 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 username=admin \ --data-urlencode password=admin \ -d response_type=token+id_token \ -d nonce=n-0S6_WzA2Mj \ --data-urlencode redirect_uri=https://gluu-testserver/idp/Authn/oxAuth \ https://gluu-testserver/oxauth/restv1/authorize -k ``` the response ``` HTTP/1.1 302 Found Date: Tue, 17 Mar 2020 02:16:03 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/oxauth/authorize.htm?scope=openid&response_type=token+id_token&redirect_uri=https%3A%2F%2Fgluu-testserver%2Fidp%2FAuthn%2FoxAuth&nonce=n-0S6_WzA2Mj&client_id=%40%216DD5.2317.2C71.B3BD%210001%213F53.7A78%210008%21A175.044F.25BC.60AA Content-Length: 0 Connection: close ``` the openid connect client configuration ``` https://filebin.net/rufs3h4hwia26mm6/Sans_titre.jpg?t=kqriy6dn ```

By Mohit Mali staff 17 Mar 2020 at 2:48 a.m. CDT

Mohit Mali gravatar
Hi Ham Di, Thank you for reaching out gluu support , i will assist you on this ticket. Let me check the scenario and get back to you. thanks and regards Mohit Mali

By Mohit Mali staff 26 Mar 2020 at 9:46 a.m. CDT

Mohit Mali gravatar
Hi Ham di, This one works for me ```curl -X GET \ 'https://host/oxauth/restv1/authorize?client_id=39dec9db-1719-4fe0-a429-1f1eb8c94b42&scope=openid%20email%20phone%20address%20profile&response_type=code&state=%7Bstate%7D&nonce=%7Bnonce%7D&response_mode=form_post&redirect_uri=http%3A%2F%2Flocalhost%3A7080%2Foauth%2Fcallback' \ -H 'cache-control: no-cache' ``` thanks and regards Mohit Mali

By Hamdi Bahrini user 27 Mar 2020 at 4:13 p.m. CDT

Hamdi Bahrini gravatar
Thank you Mohit