Skip to content

Commit

Permalink
oxAuth #791
Browse files Browse the repository at this point in the history
Dynamic Registration: Minor request - add new info logger
  • Loading branch information
qbert2k committed Aug 3, 2018
1 parent d3496e7 commit 851fc50
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -59,7 +59,7 @@
* @author Javier Rojas Blum
* @author Yuriy Zabrovarnyy
* @author Yuriy Movchan
* @version June 20, 2018
* @version August 2, 2018
*/
@Path("/")
public class RegisterRestWebServiceImpl implements RegisterRestWebService {
Expand Down Expand Up @@ -202,6 +202,9 @@ private Response registerClientImpl(String requestParams, HttpServletRequest htt
JSONObject jsonObject = getJSONObject(client, appConfiguration.getLegacyDynamicRegistrationScopeParam());
builder.entity(jsonObject.toString(4).replace("\\/", "/"));

log.info("Client registered: clientId = {}, applicationType = {}, clientName = {}, redirectUris = {}, sectorIdentifierUri = {}",
client.getClientId(), client.getApplicationType(), client.getClientName(), client.getRedirectUris(), client.getSectorIdentifierUri());

oAuth2AuditLog.setClientId(client.getClientId());
oAuth2AuditLog.setScope(clientScopesToString(client));
oAuth2AuditLog.setSuccess(true);
Expand Down

0 comments on commit 851fc50

Please sign in to comment.