changed authentication filter for sailing domain;

by default, it uses "SAP Sailing Analytics" as the application name; if the system property
com.sap.sailing.server.name is set, its value will be used instead

Change-Id: Iae57b193cfca613dd1aab8df20466ff42472c97e
This commit is contained in:
Axel Uhl committed 2016-03-08 22:15:49 +01:00
1 parent 3d25d4537d
commit a3c9a66ad2
5 files changed
+5 -5

No files matched your search

@@ -47,4 +47,4 @@ customGwt = com.sap.sse.security.CustomFilter
# If no such bearer token is provided, the filter falls back to basic HTTP # If no such bearer token is provided, the filter falls back to basic HTTP
# authentication ("Authentication: Basic ...") and then regular form-based # authentication ("Authentication: Basic ...") and then regular form-based
# authentication with POST parameters "username" and "password". # authentication with POST parameters "username" and "password".
bearerToken = com.sap.sse.security.BearerTokenOrBasicOrFormAuthenticationFilter bearerToken = com.sap.sailing.server.security.BearerTokenOrBasicOrFormAuthenticationFilterSAPSailing
@@ -57,7 +57,8 @@ Require-Bundle: com.sap.sailing.domain,
com.sap.sailing.polars, com.sap.sailing.polars,
com.sap.sse.datamining;bundle-version="1.0.0", com.sap.sse.datamining;bundle-version="1.0.0",
com.sap.sse.datamining.shared;bundle-version="1.0.0", com.sap.sse.datamining.shared;bundle-version="1.0.0",
com.sap.sailing.datamining com.sap.sailing.datamining,
com.sap.sailing.server
Bundle-ClassPath: . Bundle-ClassPath: .
Web-ContextPath: /sailingserver Web-ContextPath: /sailingserver
Export-Package: com.sap.sailing.server.gateway, Export-Package: com.sap.sailing.server.gateway,
@@ -55,7 +55,7 @@ authc.successUrl = /api/restsecurity/hello
# If no such bearer token is provided, the filter falls back to basic HTTP # If no such bearer token is provided, the filter falls back to basic HTTP
# authentication ("Authentication: Basic ...") and then regular form-based # authentication ("Authentication: Basic ...") and then regular form-based
# authentication with POST parameters "username" and "password". # authentication with POST parameters "username" and "password".
bearerToken = com.sap.sse.security.BearerTokenOrBasicOrFormAuthenticationFilter bearerToken = com.sap.sailing.server.security.BearerTokenOrBasicOrFormAuthenticationFilterSAPSailing
# Specifying filter chains for URL patterns # Specifying filter chains for URL patterns
@@ -49,4 +49,3 @@ Export-Package: com.sap.sailing.server,
com.sap.sailing.server.operationaltransformation.racelog, com.sap.sailing.server.operationaltransformation.racelog,
com.sap.sailing.server.security, com.sap.sailing.server.security,
com.sap.sailing.server.simulation com.sap.sailing.server.simulation
@@ -5,6 +5,6 @@ import com.sap.sse.security.BearerTokenOrBasicOrFormAuthenticationFilter;
public class BearerTokenOrBasicOrFormAuthenticationFilterSAPSailing extends public class BearerTokenOrBasicOrFormAuthenticationFilterSAPSailing extends
BearerTokenOrBasicOrFormAuthenticationFilter { BearerTokenOrBasicOrFormAuthenticationFilter {
public BearerTokenOrBasicOrFormAuthenticationFilterSAPSailing() { public BearerTokenOrBasicOrFormAuthenticationFilterSAPSailing() {
super(/* application name */ "SAP Sailing Analytics"); super(/* application name */ System.getProperty("com.sap.sailing.server.name", "SAP Sailing Analytics"));
} }
} }