By: Baze Ilijoskki staff 27 May 2015 at 1:42 p.m. CDT

6 Responses
Baze Ilijoskki gravatar
It is failed to register resource while working on UMA. This is Oxd log in this case. Command: {"command":"register_resource","params":{"uma_discovery_url":"https://ce.gluu.info/.well-known/uma-configuration","pat":"2c72ac6b-cf0a-481f-b15f-debeb62db9c3","name":"OX Application","scopes":["http://photoz.example.com/dev/scopes/view","http://photoz.example.com/dev/scopes/all"]}} Error status 500 Internal Server Error returned Send back response: {"status":"error","data":{"error":"internal_error","error_description":"Internal server error occurs."}}

By Yuriy Zabrovarnyy staff 27 May 2015 at 2:32 p.m. CDT

Yuriy Zabrovarnyy gravatar
Please provide oxd log in order to investigate the problem. Thanks in advance.

By Baze Ilijoskki staff 27 May 2015 at 2:35 p.m. CDT

Baze Ilijoskki gravatar
Attached the real log file.

By Yuriy Zabrovarnyy staff 28 May 2015 at 1:40 a.m. CDT

Yuriy Zabrovarnyy gravatar
From logs I can see that command is running against https://ce.gluu.info/.well-known/uma-configuration. I've just tried to access it but got 404. oxd is mediator, unfortunately in your case oxauth on ce.gluu.info send 500 (internal error) to oxd (which you can see from log). To know the root cause of the problem I need oxauth.log from ce.gluu.info.

By Baze Ilijoskki staff 28 May 2015 at 3:58 a.m. CDT

Baze Ilijoskki gravatar
oxd-server.log oxauth.log

By Baze Ilijoskki staff 28 May 2015 at 3:58 a.m. CDT

Baze Ilijoskki gravatar
oxd-server.log oxauth.log

By Yuriy Zabrovarnyy staff 28 May 2015 at 4:09 a.m. CDT

Yuriy Zabrovarnyy gravatar
If open oxauth.log you may see following lines there: 2015-05-28 08:53:59,003 DEBUG [org.xdi.oxauth.model.error.ErrorResponseFactory] Looking for the error with id: invalid_scope 2015-05-28 08:53:59,003 DEBUG [org.xdi.oxauth.model.error.ErrorResponseFactory] Found error, id: invalid_scope 2015-05-28 08:53:59,008 ERROR [xdi.oxauth.uma.ws.rs.ResourceSetRegistrationWS] Exception during resource creation It means that scopes that are used in request (in your case http://photoz.example.com/dev/scopes/view, http://photoz.example.com/dev/scopes/all) are not registered on oxauth (ce.gluu.info). Please register those scopes via oxTrust GUI (admin tool for oxauth).