Facing problem when using WSS and SOS together

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Facing problem when using WSS and SOS together

debkar
This post has NOT been accepted by the mailing list yet.
Hi,
   SOS and WSS are installed on my local computer.
   I am trying to access SOS through WSS using the following command:

http://localhost:8080/wss/service/ifgi_sos/httpauth?SERVICE=SOS&REQUEST=GetCapabilities

I am getting the follolwing error, when using alice/alice as user-id /password:

<ServiceException code="AuthorizationFailed">
You are not allowed to access at least one offering!
</ServiceException>

However, when a non-existent user-id/paswword is given, it prompts for user-id/paswword again.

"users.xml" file has alice, bob and guest as users.

"permission.xml" has the following entry among other entries:

        <Permission name="All">
            <Resource value="/offerings/*"/>
             <Resource value="/procedures/*"/>
             <Resource value="/observedProperties/*"/>
            <Resource value="/featureOfInterests/*"/>
            <Resource value="/allowedOperations/*"/>
             <Action value="/operations/*"/>
             <Subject value="alice"/>
        </Permission>

Your help will be highly appreciated.

Best Regards,
Deb

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Facing problem when using WSS and SOS together

debkar
This post has NOT been accepted by the mailing list yet.
 
I would like to some more detail to the problem.

Apache Tomcat v 7.0.23 Web Server is being used.

The 52n-security-wss-webapp log file has the following entries.

[INFO ] 2012-02-08 11:48:16,185 [http-bio-8080-exec-8] org.n52.security.enforcement.interceptors.sos.simplepermission.SOSAllowedOperationInterceptor - Initialized SOS AllowedOperation Interceptor
[INFO ] 2012-02-08 11:48:16,185 [http-bio-8080-exec-8] org.n52.security.enforcement.interceptors.sos.simplepermission.SOSFilterCapabilitiesInterceptor - Initialized SOS GetCapabilities Interceptor
[INFO ] 2012-02-08 11:48:16,185 [http-bio-8080-exec-8] org.n52.security.enforcement.interceptors.sos.simplepermission.SOSDescribeSensorInterceptor - Initialized SOS DescribeSensor Interceptor
[INFO ] 2012-02-08 11:48:16,185 [http-bio-8080-exec-8] org.n52.security.enforcement.interceptors.sos.simplepermission.SOSGetObservationInterceptor - Initialized SOS GetObservation Interceptor
[INFO ] 2012-02-08 11:48:16,185 [http-bio-8080-exec-8] org.n52.security.enforcement.interceptors.sos.simplepermission.SOSGetFeatureOfInterestInterceptor - Initialized SOS GetFeatureOfInterest Interceptor
[INFO ] 2012-02-08 11:48:16,185 [http-bio-8080-exec-8] org.n52.security.service.authentication.servlet.AuthenticationChainFilter - Request processing aborted: Missing HTTP Authorization header
[INFO ] 2012-02-08 11:48:24,934 [http-bio-8080-exec-8] org.n52.security.authentication.loginmodule.FileLoginModule - Setting user repository caching to: false
[INFO ] 2012-02-08 11:48:24,934 [http-bio-8080-exec-8] org.n52.security.authentication.loginmodule.FileLoginModule - Loading user repository from file:/C:/toolenv/apache-tomcat-7.0.23/webapps/wss/WEB-INF/classes/users.xml
[INFO ] 2012-02-08 11:48:24,966 [http-bio-8080-exec-8] org.n52.security.service.pdp.xacml.functions.URLEqualsWildcardFunction - Found matching policy set 'urn:52n:security:simplepermissions:permissionset:name:IFGI+SOS'
[INFO ] 2012-02-08 11:48:25,013 [http-bio-8080-exec-8] org.n52.security.service.pdp.xacml.functions.URLEqualsWildcardFunction - Found matching policy set 'urn:52n:security:simplepermissions:permissionset:name:IFGI+SOS'
[INFO ] 2012-02-08 11:48:25,013 [http-bio-8080-exec-8] org.n52.security.service.pdp.xacml.functions.URLEqualsWildcardFunction - Found matching policy set 'urn:52n:security:simplepermissions:permissionset:name:IFGI+SOS'
[INFO ] 2012-02-08 11:48:25,028 [http-bio-8080-exec-8] org.n52.security.service.pdp.xacml.functions.URLEqualsWildcardFunction - Found matching policy set 'urn:52n:security:simplepermissions:permissionset:name:IFGI+SOS'
[INFO ] 2012-02-08 11:48:25,028 [http-bio-8080-exec-8] org.n52.security.service.pdp.xacml.functions.URLEqualsWildcardFunction - Found matching policy set 'urn:52n:security:simplepermissions:permissionset:name:IFGI+SOS'
[INFO ] 2012-02-08 11:48:25,028 [http-bio-8080-exec-8] org.n52.security.service.pdp.xacml.functions.URLEqualsWildcardFunction - Found matching policy set 'urn:52n:security:simplepermissions:permissionset:name:IFGI+SOS'
[INFO ] 2012-02-08 11:48:25,044 [http-bio-8080-exec-8] org.n52.security.service.pdp.xacml.functions.URLEqualsWildcardFunction - Found matching policy set 'urn:52n:security:simplepermissions:permissionset:name:IFGI+SOS'
[INFO ] 2012-02-08 11:48:25,044 [http-bio-8080-exec-8] org.n52.security.service.pdp.xacml.functions.URLEqualsWildcardFunction - Found matching policy set 'urn:52n:security:simplepermissions:permissionset:name:IFGI+SOS'
[INFO ] 2012-02-08 11:48:25,044 [http-bio-8080-exec-8] org.n52.security.service.pdp.xacml.functions.URLEqualsWildcardFunction - Found matching policy set 'urn:52n:security:simplepermissions:permissionset:name:IFGI+SOS'
[INFO ] 2012-02-08 11:48:25,059 [http-bio-8080-exec-8] org.n52.security.service.pdp.xacml.functions.URLEqualsWildcardFunction - Found matching policy set 'urn:52n:security:simplepermissions:permissionset:name:IFGI+SOS'
[INFO ] 2012-02-08 11:48:25,059 [http-bio-8080-exec-8] org.n52.security.service.pdp.xacml.functions.URLEqualsWildcardFunction - Found matching policy set 'urn:52n:security:simplepermissions:permissionset:name:IFGI+SOS'
[INFO ] 2012-02-08 11:48:25,075 [http-bio-8080-exec-8] org.n52.security.service.pdp.xacml.functions.URLEqualsWildcardFunction - Found matching policy set 'urn:52n:security:simplepermissions:permissionset:name:IFGI+SOS'
[INFO ] 2012-02-08 11:48:25,075 [http-bio-8080-exec-8] org.n52.security.service.pdp.xacml.functions.URLEqualsWildcardFunction - Found matching policy set 'urn:52n:security:simplepermissions:permissionset:name:IFGI+SOS'
[WARN ] 2012-02-08 11:48:25,075 [http-bio-8080-exec-8] org.n52.security.service.wss.PolicyEnforcementServiceImpl - Unauthorized request: You are not allowed to access at least one offering!
Loading...