-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add user details #3
Conversation
@@ -87,7 +87,7 @@ public void invokeService(final RenderRequest req, final RenderResponse res) { | |||
IOUtils.copy(entity.getContent(), res.getPortletOutputStream()); | |||
|
|||
} catch (IOException e) { | |||
logger.error("Failed to invoke serviceUrl '{}'", serviceUrl); | |||
logger.error("Failed to invoke serviceUrl '{}' with reason {}", serviceUrl, e.getMessage()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! (I was moving really quickly.)
I'm working on ideas for a first draft data model: https://github.com/drewwills/Soffit/wiki/Soffit-Connector-Data-Model |
@@ -118,6 +118,9 @@ private SoffitRequest buildSoffitRequest(final RenderRequest req, final RenderRe | |||
// Namespace | |||
rslt.setNamespace(res.getNamespace()); | |||
|
|||
// User | |||
rslt.getUserDetails().setUsername(req.getUserPrincipal().getName()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a heads up -- this whole data model about to be replaced by this: https://github.com/drewwills/Soffit/wiki/Soffit-Connector-Data-Model
This should add a very basic (for now at least) UserDetails object to the SoffitRequest. The name was chosen to mirror Spring Security's nomenclature, but I'm not stuck to it; feel free to suggest something else.
This also adds the gradle wrapper, which I simply let gradle set up for me (and I believe is typically best practice for gradle projects -- avoids version conflicts).