By: Sakit Atakishiyev user 26 Apr 2017 at 6:07 a.m. CDT

7 Responses
Sakit Atakishiyev gravatar
Hello. I use oxd-server library. When I try to authorize my rpt I got this error ``` ERROR [org.xdi.oxd.common.CommandResponse] Unrecognized field "oxd_id" (Class org.xdi.oxauth.model.uma.RptAuthorizationResponse), not marked as ignorable ``` I attached full log also

By Yuriy Zabrovarnyy staff 26 Apr 2017 at 8:52 a.m. CDT

Yuriy Zabrovarnyy gravatar
When I'm trying to download file I got "This file has been removed. This may be due to a violation of our terms, harmful downloads, or a DMCA request." Would you please attach file directly here (via "Attachment section") ?

By Yuriy Zabrovarnyy staff 26 Apr 2017 at 8:58 a.m. CDT

Yuriy Zabrovarnyy gravatar
Meanwhile I checked how RPT authorization works via tests and it seems to work. Lets investigate your log file. Please send full `oxd-server.log` ``` 2017-04-21 04:03:22,211 TRACE [main] client.TransportClient (TransportClient.java:76) - Send: 0226{"command":"uma_rp_authorize_rpt","params":{"rpt":"68aba34d-12ba-4c09-a936-2f24ac312029/70EB.08FF.33B8.FFF5.D6EC.B8D8.24B5.6938","ticket":"15bebc20-7c85-464c-850f-b603747f8029","oxd_id":"3b25ac21-c903-4f85-8fb6-19fd072436db"}} 2017-04-21 04:03:22,212 TRACE [main] common.CoreUtils (CoreUtils.java:168) - commandSize: -1, stringStorage: 2017-04-21 04:03:22,212 TRACE [Thread-15] common.CoreUtils (CoreUtils.java:183) - Parsed sizeString: 0226, commandSize: 226 2017-04-21 04:03:22,213 TRACE [Thread-15] common.CoreUtils (CoreUtils.java:201) - Read result: ReadResult{m_command='{"command":"uma_rp_authorize_rpt","params":{"rpt":"68aba34d-12ba-4c09-a936-2f24ac312029/70EB.08FF.33B8.FFF5.D6EC.B8D8.24B5.6938","ticket":"15bebc20-7c85-464c-850f-b603747f8029","oxd_id":"3b25ac21-c903-4f85-8fb6-19fd072436db"}}', m_leftString=''} 2017-04-21 04:03:22,213 TRACE [Thread-15] server.Processor (Processor.java:51) - Command: {"command":"uma_rp_authorize_rpt","params":{"rpt":"68aba34d-12ba-4c09-a936-2f24ac312029/70EB.08FF.33B8.FFF5.D6EC.B8D8.24B5.6938","ticket":"15bebc20-7c85-464c-850f-b603747f8029","oxd_id":"3b25ac21-c903-4f85-8fb6-19fd072436db"}} 2017-04-21 04:03:22,216 DEBUG [Thread-15] op.RpAuthorizeRptOperation (RpAuthorizeRptOperation.java:40) - Try to authorize RPT with ticket: 15bebc20-7c85-464c-850f-b603747f8029... 2017-04-21 04:03:22,217 TRACE [Thread-15] service.HttpService (HttpService.java:39) - Created TRUST_ALL client. z.example.com/dev/actions/view, http://photoz.example.com/dev/actions/all], ticketScopes=[http://photoz.example.com/dev/actions/view]}, UmaResource{id='1492761800893', path='/ws/phone', httpMethods=[PUT, POST], scopes=[http://photoz.example.com/dev/actions/add, http://photoz.example.com/dev/actions/all], ticketScopes=[http://photoz.example.com/dev/actions/add]}, UmaResource{id='1492761800966', path='/ws/phone', httpMethods=[DELETE], scopes=[http://photoz.example.com/dev/actions/remove, http://photoz.example.com/dev/actions/all], ticketScopes=[http://photoz.example.com/dev/actions/remove]}], rpt=68aba34d-12ba-4c09-a936-2f24ac312029/70EB.08FF.33B8.FFF5.D6EC.B8D8.24B5.6938, rptCreatedAt=Fri Apr 21 04:03:21 EDT 2017, rptExpiresIn=Fri Apr 21 04:08:21 EDT 2017, gat=null, gatCreatedAt=null, gatExpiresIn=null} 2017-04-21 04:03:22,291 TRACE [Thread-15] op.RpAuthorizeRptOperation (RpAuthorizeRptOperation.java:46) - RPT is authorized. RPT: 68aba34d-12ba-4c09-a936-2f24ac312029/70EB.08FF.33B8.FFF5.D6EC.B8D8.24B5.6938 ```

By Sakit Atakishiyev user 26 Apr 2017 at 10 a.m. CDT

Sakit Atakishiyev gravatar
I hope this help you

By Yuriy Zabrovarnyy staff 26 Apr 2017 at 11:16 a.m. CDT

Yuriy Zabrovarnyy gravatar
OK, this does not look as `oxd-client` java client code. ``` at oxdapi.OxdApi.executeCommand(OxdApi.java:158) at oxdapi.OxdApi.registerRpt(OxdApi.java:128) ``` From where is it taken? If you share source code to me than I can help. I assume there is bug in that code. You can find our java client here ``` https://github.com/GluuFederation/oxd/tree/master/oxd-client ``` Compiled version can be found in maven repo: ``` https://ox.gluu.org/maven/org/xdi/oxd-client/ ``` Thanks, Yuriy

By Yuriy Zabrovarnyy staff 26 Apr 2017 at 11:18 a.m. CDT

Yuriy Zabrovarnyy gravatar
Also it seems that code uses `oxauth-client` code which indeed is totally wrong. Look at package: ``` org.xdi.oxauth.model.uma.RptAuthorizationResponse ```

By Yuriy Zabrovarnyy staff 26 Apr 2017 at 11:21 a.m. CDT

Yuriy Zabrovarnyy gravatar
You may want to check oxd client UMA Test here: ``` https://github.com/GluuFederation/oxd/blob/master/oxd-client/src/test/java/org/xdi/oxd/client/UmaFullTest.java ``` BR, Yuriy

By Sakit Atakishiyev user 27 Apr 2017 at 12:56 a.m. CDT

Sakit Atakishiyev gravatar
Thank Yuri that my own project class. In these methods I used your oxd-client library. I thought that this problem comes wrong casting. Thanks again. Sorry for took your time.