Skip to content

Instantly share code, notes, and snippets.

@Override
public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response) throws AuthenticationException {
String username = null,
password = null;
if (request.getMethod().equals(HttpMethod.OPTIONS.toString())) {
response.setStatus(HttpStatus.OK.value());
return null;
} else if (request.getMethod().equals("POST")) {
if (verifyHeaderContentType(request) || request.getHeader("Accept") != null)
response.addHeader("Content-Type", request.getHeader("Accept"));
eyJhbGciOiJSUzI1NiIsImtpZCI6IjFlOWdkazcifQ.ewogImlzcyI6ICJodHRw
Oi8vc2VydmVyLmV4YW1wbGUuY29tIiwKICJzdWIiOiAiMjQ4Mjg5NzYxMDAxIiw
KICJhdWQiOiAiczZCaGRSa3F0MyIsCiAibm9uY2UiOiAibi0wUzZfV3pBMk1qIi
wKICJleHAiOiAxMzExMjgxOTcwLAogImlhdCI6IDEzMTEyODA5NzAKfQ.ggW8hZ
1EuVLuxNuuIJKX_V8a_OMXzR0EHR9R6jgdqrOOF4daGU96Sr_P6qJp6IcmD3HP9
9Obi1PRs-cwh3LO-p146waJ8IhehcwL7F09JdijmBqkvPeB2T9CJNqeGpe-gccM
g4vfKjkM8FcGvnzZUN4_KSP0aAp1tOJ1zZwgjxqGByKHiOtX7TpdQyHE5lcMiKP
XfEIQILVq0pc_E2DzL7emopWoaoZTF_m0_N0YzFC6g6EJbOEoRoSK5hoDalrcvR
YLSrQAZZKflyuVCyixEoV9GfNQC3_osjzw2PAithfubEEBLuVVk4XUVrWOLrLl0
nx7RkKU8NXNHq-rvKMzqg
iaas_settings:
stemcell:
name: bosh-openstack-kvm-ubuntu-trusty-go_agent
version: latest
compilation_cloud_properties:
instance_type: cf.medium
network: diego1
workers: 2
subnet_configs:
- name: diego1
type Entity struct {
map[string]struct { }
}
resource_pools:
- name: small_z1
network: cf1
size: (( auto ))
stemcell: (( meta.stemcell ))
cloud_properties:
instance_type: m1.small
- name: small_z2
network: cf2
cd /var/vcap/sys/log/
root@7a996ffd-d7bf-48ec-91a5-d3de26c8fdc0:/var/vcap/sys/log# ls
compilation dea_logging_agent dea_next metron_agent warden
dea_ctl.err.log dea_logging_agent_ctl.err.log dir_server_ctl.err.log metron_agent_ctl.err.log warden_ctl.err.log
dea_ctl.log dea_logging_agent_ctl.log dir_server_ctl.log metron_agent_ctl.log warden_ctl.log
root@7a996ffd-d7bf-48ec-91a5-d3de26c8fdc0:/var/vcap/sys/log# cat *.log
------------ STARTING dea_ctl at Fri Sep 5 06:47:02 UTC 2014 --------------
------------ STARTING dea_ctl at Fri Sep 5 06:47:02 UTC 2014 --------------
ps auxww | grep deaagent
root 1879 0.0 0.1 338816 8460 ? S<l 06:47 0:02 /var/vcap/packages/dea_logging_agent/deaagent --config /var/vcap/jobs/dea_logging_agent/config/dea_logging_agent.json
root 5000 0.0 0.0 10440 928 pts/1 S+ 08:30 0:00 grep --color=auto deaagent
root@7a996ffd-d7bf-48ec-91a5-d3de26c8fdc0:/var/vcap/bosh_ssh/bosh_wciuh7bm5# strace -p 1879
Process 1879 attached
futex(0xaf3ae0, FUTEX_WAIT, 0, NULL
cf push
Using manifest file /Users/userOne/Development/dev/web/manifest.yml
Updating app web in org demo / space development as admin...
OK
Using route web.X.X.X.X.xip.io
Uploading web...
Uploading app files from: /Users/userOne/Development/dev/web/target/web.war
Uploading 1.9M, 339 files
api_templates:
- name: cloud_controller_ng
release: (( meta.release.name ))
- name: metron_agent
release: (( meta.release.name ))
api_worker_templates:
- name: cloud_controller_worker
release: (( meta.release.name ))
- name: metron_agent
-----> Downloaded app package (48M)
-----> Downloaded app buildpack cache (77M)
-----> Java Buildpack Version: bda9e51 | https://github.com/cloudfoundry/java-buildpack.git#bda9e51
-----> Downloading Open Jdk JRE 1.8.0_20 from https://download.run.pivotal.io/openjdk/lucid/x86_64/openjdk-1.8.0_20.tar.gz (found in cache)
Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.5s)
-----> Downloading Spring Auto Reconfiguration 1.4.0_RELEASE from https://download.run.pivotal.io/auto-reconfiguration/auto-reconfiguration-1.4.0_RELEASE.jar (found in cache)
Modifying /WEB-INF/web.xml for Auto Reconfiguration
-----> Downloading Tomcat Instance 7.0.55 from https://download.run.pivotal.io/tomcat/tomcat-7.0.55.tar.gz (found in cache)
Expanding Tomcat to .java-buildpack/tomcat (0.2s)
-----> Downloading Tomcat Lifecycle Support 2.2.0_RELEASE from https://download.run.pivotal.io/tomcat-lifecycle-support/tomcat-lifecycle-support-2.2.0_RELEASE.jar (found in cache)