By: Joao Matos user 25 May 2021 at 4:32 a.m. CDT

2 Responses
Joao Matos gravatar
Hi. I seem to be having trouble adding grant_types and response_types to the Client via software_statement (also tried outside the software_statement field and add simply as normal client metadata fields) but no success. Gluu doesn't detect any and adds the default "code" for response types and "refresh_token" + "authorization_code" for grant types. Curl request: ``` curl -k -X POST -H "Content-Type: application/json" -d '{'software_statement': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlJTQTEifQ.eyJzb2Z0d2FyZV9pZCI6IjROUkIxLTBYWkFCWkk5RTYtNVNNM1IiLCJjbGllbnRfbmFtZSI6IkV4YW1wbGUgU3RhdGVtZW50LWJhc2VkIENsaWVudCIsImNsaWVudF91cmkiOiJodHRwczovL2NsaWVudC5leGFtcGxlLm5ldC8iLCJzZWN0b3JfaWRlbnRpZmllcl91cmkiOiJodHRwczovL2RlbW9leGFtcGxlLmdsdXUub3JnL294YXV0aC9zZWN0b3JpZGVudGlmaWVyLzliNDczODY4LWZhOTYtNGZkMS1hNjYyLTc2ZTM2NjNjOTcyNiIsInJlc3BvbnNlX3R5cGVzIjpbInRva2VuLGlkX3Rva2VuLGNvZGUiXSwiZ3JhbnRfdHlwZXMiOlsiY2xpZW50X2NyZWRlbnRpYWxzLHBhc3N3b3JkLGltcGxpY2l0LGF1dGhvcml6YXRpb25fY29kZSJdLCJ0b2tlbl9lbmRwb2ludF9hdXRoX21ldGhvZCI6ImNsaWVudF9zZWNyZXRfcG9zdCIsInBvc3RfbG9nb3V0X3JlZGlyZWN0X3VyaXMiOlsiaHR0cHM6Ly9kZW1vZXhhbXBsZS5nbHV1Lm9yZy9sb2dvdXQiXSwicmVkaXJlY3RfdXJpcyI6WyJodHRwczovL2RlbW9leGFtcGxlLmdsdXUub3JnL3dlYl91aS9vYXV0aC9jYWxsYmFjayJdLCJzY29wZSI6Im9wZW5pZCBveGQgcGVybWlzc2lvbiIsImp3a3MiOnsia2V5cyI6W3sia3R5IjoiUlNBIiwia2lkIjoiUlNBMSIsIm4iOiIwY0J3b2thVEZlMks1VkdSU0hnbEtIcE02YkxsVEJYc2FQN2c2cXRoaHF3QkVyM2k5M1M0QXFOMW5nT1ZfbzdKVHE4MFUtQThNdWM2M0VlM1d3RHFHZWFNaE1fV3dDZHY5d3N6ekhGUlZqck90cW81Nm5CQ2ptXzlZbHRUV2dSSjJidDAtSFA4enByV09GcXRNVXhzRnRfQVB1NEJpOXp3VGFvZFZkQXhvZC03bDU3aDlpdzBVLUxvUThPcDBjNi0wb1hLOFMwVmV3anJCMjJTYTNleThDd2phYzVQZ3hWcm5XczQ0eG1fWXFUY2pPOHo5ZzlfMExrOHJjWTB2akpqNjNHaldPUWQ5aEFHZXRPNjBNNGJjV0l5czI5Y0JKWnFGN1cyZDJ6eHlmc3VfSWpvd3hhRmctaGV3YVlJT3R1Rk41WVktZ0pGdlQtc3hKcXBnNjFScHciLCJlIjoiQVFBQiJ9XX19.GELcvNK47YqDkci4G4Q8hTr4sCkYvg91IpKEweN3l3dT7_uOXiaWy6iG65L8wlwrJtDv5nFK0pmkpZxq9elLEJ3GQIU-7kzfwVQbbyjTlGjVWeYuGfx7PrNBc65u-QIRP4Qd3Np75UHa0cQUJiLOzHSPAGbLVMMI90iLWEb7mbb47W79jSZhXouv3zW6iEs0OvUB-wxmtC2KejoE9apW00tVXUj4kCIu2kEwOn8z2b-nJQxVNqHVEuQkM-fB_9S9SAKcHTtpumfKiqRDJLAMVJDLQR_JQ8C7OYCLCxKGCdentliSXzT0B17ZzBXOvEnygfqZ9z1PlTb7jtgi6cmbsA'}' https://demoexample.gluu.org/oxauth/restv1/register ``` Adds this: ![Client](https://i.imgur.com/47kuKlb.png) I've also check on the code and I also noticed that it isn't getting any data in ``` requestObject.getResponseTypes() requestObject.getGrantTypes() ``` in: [source code](https://github.com/GluuFederation/oxAuth/blob/3e61a4838b646bbdb866a875b1322a3063470237/Server/src/main/java/org/gluu/oxauth/register/ws/rs/RegisterRestWebServiceImpl.java#L345) Is there also something I'm missing here? Thank you.

By Michael Schwartz Account Admin 30 May 2021 at 3:06 p.m. CDT

Michael Schwartz gravatar
If you have any special business logic for how to process the software statement, typically you would add this in the client registration interception script. This topic is too advanced to assign an engineer. If you need help with this kind of question, you should consider procuring a Gluu support contract.

By Joao Matos user 31 May 2021 at 4:12 a.m. CDT

Joao Matos gravatar
Dear Michael. Thank you for your reply but this is not a special business logic case. This is simply a matter of us passing both response types and grant types on our initial request (trying with sending these inside the software statement, and also outside) and Gluu not recognizing/reading these values, and simply assigning what appear to be default ones to the client registration. If we do not send the software statement attribute in our request, the response and grant type values are correctly read and added to the registered client, so it seems to be an issue when the software statement is passed. Any help understanding the issue would be appreciated. Thank you.