Skip to content
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

Merged
merged 5 commits into from
Jun 17, 2016
Merged

Add user details #3

merged 5 commits into from
Jun 17, 2016

Conversation

andrewstuart
Copy link
Contributor

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).

@@ -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());
Copy link
Owner

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.)

@drewwills
Copy link
Owner

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());
Copy link
Owner

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

@drewwills drewwills merged commit 79419ab into drewwills:master Jun 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants