commit | 49bccdce3e434e2e05d0f36ab5e4f2163184825b | [log] [tgz] |
---|---|---|
author | Jim Hahn <jrh3@att.com> | Sat Apr 21 01:07:34 2018 -0400 |
committer | Jim Hahn <jrh3@att.com> | Mon Apr 23 10:47:33 2018 -0400 |
tree | 2e2c27fad59671bb6fe0df23fba8688b7a090f14 | |
parent | d548b61bd5e657a4e2c47fb98da8c28e0a69cf42 [diff] |
Send credentials to AAI Per this link: http://www.baeldung.com/httpclient-4-basic-authentication apache HttpClient does not send the credentials by default, but instead waits for the server to issue a challenge before sending them. Modified RESTManager to construct and send the Authorization header always instead of waiting for the challenge. Remove unused imports. Also add Authorization header for POST request. Change error message to match original error message when username is null. Preempt sonar issue. Allow null user name, which indicates that the Authorization header should not be sent. Note: this only impacts the RESTManager class; invoking classes (e.g., AaiManager) still enforce that the user name exists in the properties. Fix license dates in modified test code. Change-Id: I3cb26e76562db746939631437775727809553390 Issue-ID: POLICY-754 Signed-off-by: Jim Hahn <jrh3@att.com>
Copyright 2018 AT&T Intellectual Property. All rights reserved. This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE Full license text at https://creativecommons.org/licenses/by/4.0/legalcode
This source repository contains ONAP Policy application code. To build it:
The Demo template rule is located in template.demo sub-project. Use that project to protoype and test the .drl demo rule. When finished update the archetype-closedloop-demo-rules project with the .drl. Be sure to remove the Setup rule and comment out any simulation/test code.
The other projects are supporting code used by the template.demo project.