@@ -64,13 +64,13 @@ public void init(ServletConfig servletConfig) throws ServletException {
64
64
log .info ("Ignoring app.usergridUri because it is invalid." );
65
65
}
66
66
67
- applicationName = (String ) properties .get ("app.applicationName " );
68
- String organizationId = (String ) properties .get ("app.organizationId " );
69
- String applicationId = (String ) properties .get ("app.applicationId " );
67
+ applicationName = (String ) properties .get ("app.name " );
68
+ String organizationId = (String ) properties .get ("org.id " );
69
+ String applicationId = (String ) properties .get ("app.id " );
70
70
userGridClient = new Client (organizationId , applicationId );
71
71
72
- String clientId = (String ) properties .get ("app .clientId" );
73
- String clientSecret = (String ) properties .get ("app .clientSecret" );
72
+ String clientId = (String ) properties .get ("org .clientId" );
73
+ String clientSecret = (String ) properties .get ("org .clientSecret" );
74
74
userGridClient .authorizeAppClient (clientId , clientSecret );
75
75
76
76
} catch (IOException ex ) {
@@ -94,7 +94,7 @@ protected void copyRequestHeaders(HttpServletRequest req, HttpRequest proxyReq)
94
94
95
95
String header = "Bearer " + userGridClient .getAccessToken ();
96
96
proxyReq .setHeader ("Authorization" , header );
97
- log .info ("Added header = {0 }" , header );
97
+ log .info ("added header {} to URL { }" , header , req . getRequestURL (). toString () );
98
98
}
99
99
}
100
100
}
0 commit comments