Commit
e12ff02a458d6d4baabc708d5ac8deb1cc0e7e11
by timothyjward Move the UserInfo into northbound security The User Info class belongs with the northbound security API which is a factory for it Signed-off-by: Tim Ward <timothyjward@apache.org> (commit: e12ff02 ) The file was modified northbound/security/openid-connect/src/main/java/org/eclipse/sensinact/gateway/northbound/security/oidc/OIDCTokenValidator.java The file was removed northbound/security/authentication-api/src/main/java/org/eclipse/sensinact/northbound/security/api/Authenticator.java The file was modified northbound/query-handler/src/test/java/org/eclipse/sensinact/northbound/query/test/integration/ResourceAccessTest.java The file was modified southbound/mqtt/mqtt-device-factory/integration-test.bndrun The file was modified northbound/security/openid-connect/pom.xml The file was modified northbound/rest/pom.xml The file was modified northbound/query-handler/src/test/java/org/eclipse/sensinact/northbound/query/test/integration/MissingEntityTest.java The file was modified southbound/virtual/virtual-temperature-sensor/src/test/java/org/eclipse/sensinact/gateway/southbound/virtual/temperature/integration/TemperatureSensorTest.java The file was modified southbound/http/http-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/http/factory/integration/HttpDeviceFactoryAuthTest.java The file was modified distribution/features/northbound-ogc-sensorthings-feature/pom.xml The file was modified northbound/query-handler/src/test/java/org/eclipse/sensinact/northbound/query/test/integration/DescriptionsTest.java The file was modified northbound/rest/src/main/java/org/eclipse/sensinact/northbound/rest/impl/AuthenticationFilter.java The file was modified northbound/security/openid-connect/src/test/java/org/eclipse/sensinact/gateway/northbound/security/oidc/integration/ValidatorTest.java The file was modified distribution/features/northbound-oidc-authenticator-feature/src/main/resources/northbound-oidc-authenticator-feature.json The file was modified northbound/websocket/src/main/java/org/eclipse/sensinact/northbound/ws/impl/WebSocketJettyRegistrar.java The file was modified southbound/http/http-device-factory/integration-test.bndrun The file was modified southbound/http/http-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/http/factory/integration/HttpDeviceFactorySSLTest.java The file was modified northbound/security/pom.xml The file was removed core/api/src/main/java/org/eclipse/sensinact/core/security/package-info.java The file was modified southbound/virtual/virtual-temperature-sensor/integration-test.bndrun The file was modified northbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/integration/SensinactSessionTest.java The file was added northbound/security/security-api/src/main/java/org/eclipse/sensinact/northbound/security/api/Authenticator.java The file was added northbound/security/security-api/src/main/java/org/eclipse/sensinact/northbound/security/api/package-info.java The file was removed northbound/security/authentication-api/src/main/java/org/eclipse/sensinact/northbound/security/api/package-info.java The file was modified southbound/http/http-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/http/factory/integration/HttpDeviceFactoryTest.java The file was modified northbound/security/openid-connect/integration-test.bndrun The file was modified distribution/features/northbound-rest-feature/pom.xml The file was modified northbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/ResourceAccessTest.java The file was modified northbound/rest/integration-test.bndrun The file was modified distribution/features/northbound-oidc-authenticator-feature/pom.xml The file was modified distribution/features/northbound-rest-feature/src/main/resources/northbound-rest-feature.json The file was modified northbound/query-handler/integration-test.bndrun The file was modified northbound/session/session-api/pom.xml The file was modified northbound/session/session-api/src/main/java/org/eclipse/sensinact/northbound/session/SensiNactSessionManager.java The file was modified northbound/websocket/integration-test.bndrun The file was modified northbound/sensorthings/rest.gateway/src/main/java/org/eclipse/sensinact/sensorthings/sensing/rest/impl/SensinactSessionProvider.java The file was modified distribution/features/northbound-ogc-sensorthings-feature/src/main/resources/northbound-ogc-sensorthings-feature.json The file was modified northbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/integration/SessionSubscribeTest.java The file was modified northbound/websocket/pom.xml The file was modified northbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/SecureAccessTest.java The file was added northbound/security/security-api/pom.xml The file was removed core/api/src/main/java/org/eclipse/sensinact/core/security/UserInfo.java The file was modified northbound/sensorthings/rest.gateway/src/test/java/org/eclipse/sensinact/sensorthings/sensing/rest/integration/AbstractIntegrationTest.java The file was modified distribution/features/northbound-ogc-sensorthings-mqtt-feature/pom.xml The file was modified northbound/websocket/src/main/java/org/eclipse/sensinact/northbound/ws/impl/WebSocketCreator.java The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/SensiNactSessionImpl.java The file was modified northbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/notification/ResourceNotificationsTest.java The file was added northbound/security/security-api/src/main/java/org/eclipse/sensinact/northbound/security/api/UserInfo.java The file was modified northbound/rest/src/main/java/org/eclipse/sensinact/northbound/rest/impl/SensinactSessionProvider.java The file was removed northbound/security/authentication-api/pom.xml The file was modified northbound/sensorthings/rest.gateway/integration-test.bndrun The file was modified northbound/websocket/src/test/java/org/eclipse/sensinact/northbound/websocket/integration/SecureWebSocketTest.java The file was modified distribution/features/northbound-ogc-sensorthings-mqtt-feature/src/main/resources/northbound-ogc-sensorthings-mqtt-feature.json The file was modified southbound/http/http-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/http/factory/integration/HttpDeviceFactoryParallelQueries.java The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/SessionManager.java The file was modified southbound/mqtt/mqtt-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/mqtt/factory/integration/MqttDeviceFactoryTest.java The file was modified northbound/security/openid-connect/src/main/java/org/eclipse/sensinact/gateway/northbound/security/oidc/JwsUserInfo.java The file was modified northbound/session/session-api/src/main/java/org/eclipse/sensinact/northbound/session/SensiNactSession.java
Commit
dab44654a9e8802733cd6c986080180e43732073
by timothyjward Introduce authorization checks in the Session API * Include a configurable default fallback to allow all, allow authenticated only, or forbid all * Apply as many checks as possible prior to accessing the gateway thread Signed-off-by: Tim Ward <timothyjward@apache.org> (commit: dab4465 ) The file was modified northbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/integration/SessionSubscribeTest.java The file was modified southbound/http/http-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/http/factory/integration/HttpDeviceFactoryTest.java The file was modified northbound/session/session-impl/pom.xml The file was modified northbound/websocket/src/test/java/org/eclipse/sensinact/northbound/websocket/integration/SecureWebSocketTest.java The file was modified northbound/query-handler/src/test/java/org/eclipse/sensinact/northbound/query/test/integration/ResourceAccessTest.java The file was modified northbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/DescriptionsTest.java The file was added northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/DefaultAuthPolicy.java The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/SessionManager.java The file was modified southbound/mqtt/mqtt-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/mqtt/factory/integration/MqttDeviceFactoryTest.java The file was added northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/AllowAllAuthorizer.java The file was modified distribution/features/timescale-history-provider-feature/src/it/resources/config/configuration.json The file was modified southbound/http/http-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/http/factory/integration/HttpDeviceFactoryParallelQueries.java The file was modified southbound/virtual/virtual-temperature-sensor/integration-test.bndrun The file was modified northbound/rest/src/main/java/org/eclipse/sensinact/northbound/rest/impl/RestAccessApplication.java The file was modified northbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/integration/SensinactSessionTest.java The file was modified northbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/notification/ResourceNotificationsTest.java The file was modified core/impl/src/main/java/org/eclipse/sensinact/core/command/impl/GatewayThreadImpl.java The file was modified southbound/http/http-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/http/factory/integration/HttpDeviceFactoryAuthTest.java The file was modified core/impl/integration-test.bndrun The file was added northbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/impl/DefaultSessionAuthorizationEngineTests.java The file was modified pom.xml The file was modified northbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/ResourceAccessTest.java The file was added northbound/security/security-api/src/main/java/org/eclipse/sensinact/northbound/security/api/AuthorizationEngine.java The file was modified northbound/sensorthings/rest.gateway/src/test/java/org/eclipse/sensinact/sensorthings/sensing/rest/integration/ObservationHistoryTest.java The file was modified southbound/http/http-device-factory/src/test/java/org/eclipse/sensinact/gateway/southbound/http/factory/integration/HttpDeviceFactorySSLTest.java The file was modified northbound/query-handler/src/test/java/org/eclipse/sensinact/northbound/query/test/integration/MissingEntityTest.java The file was modified southbound/http/http-device-factory/integration-test.bndrun The file was added northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/DefaultSessionAuthorizationEngine.java The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/SensiNactSessionImpl.java The file was modified southbound/virtual/virtual-temperature-sensor/src/test/java/org/eclipse/sensinact/gateway/southbound/virtual/temperature/integration/TemperatureSensorTest.java The file was modified distribution/features/northbound-oidc-authenticator-feature/src/it/resources/config/configuration.json The file was added northbound/session/session-impl/integration-test.bndrun The file was modified northbound/query-handler/src/test/java/org/eclipse/sensinact/northbound/query/test/integration/DescriptionsTest.java The file was added northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/DenyAllAuthorizer.java The file was modified northbound/websocket/src/test/java/org/eclipse/sensinact/northbound/websocket/integration/WebSocketTest.java The file was modified distribution/features/virtual-temperature-sensor-feature/src/it/resources/config/configuration.json The file was modified northbound/query-handler/integration-test.bndrun The file was modified northbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/MissingEntityTest.java The file was modified northbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/SecureAccessTest.java The file was modified northbound/sensorthings/rest.gateway/src/test/java/org/eclipse/sensinact/sensorthings/sensing/rest/integration/AbstractIntegrationTest.java The file was added northbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/impl/TestUserInfo.java
Commit
a918712bbc5a330cc4b6bd4170ea0479c94087e4
by timothyjward Lint checking fixes Spacing tidy up and adding a missing license header Signed-off-by: Tim Ward <timothyjward@apache.org> (commit: a918712 ) The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/AllowAllAuthorizer.java The file was modified core/impl/src/main/java/org/eclipse/sensinact/core/model/nexus/ModelNexus.java The file was modified core/impl/src/main/java/org/eclipse/sensinact/core/twin/impl/SensinactDigitalTwinImpl.java The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/DefaultSessionAuthorizationEngine.java The file was modified northbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/integration/SessionSubscribeTest.java The file was modified distribution/features/virtual-temperature-sensor-feature/src/it/resources/config/configuration.json The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/DenyAllAuthorizer.java The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/SessionManager.java The file was modified core/api/src/main/java/org/eclipse/sensinact/core/twin/SensinactProvider.java The file was modified northbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/ResourceAccessTest.java The file was modified northbound/sensorthings/rest.gateway/src/test/java/org/eclipse/sensinact/sensorthings/sensing/rest/integration/AbstractIntegrationTest.java The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/SensiNactSessionImpl.java The file was modified northbound/security/security-api/src/main/java/org/eclipse/sensinact/northbound/security/api/AuthorizationEngine.java The file was modified northbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/impl/TestUserInfo.java The file was modified northbound/sensorthings/rest.gateway/src/test/java/org/eclipse/sensinact/sensorthings/sensing/rest/integration/ObservationHistoryTest.java The file was modified northbound/session/session-impl/src/main/java/org/eclipse/sensinact/nortbound/session/impl/DefaultAuthPolicy.java The file was modified northbound/rest/src/test/java/org/eclipse/sensinact/northbound/rest/integration/SecureAccessTest.java The file was modified northbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/impl/DefaultSessionAuthorizationEngineTests.java The file was modified northbound/session/session-impl/src/test/java/org/eclipse/sensinact/nortbound/session/integration/SensinactSessionTest.java
Commit
75ebfda3a5ea0244bc69ec2309a7c7015144a84c
by timothyjward Make the sensiNact build more CI friendly Since Maven 3.5.0 poms have had the ability to be [CI-friendly](https://maven.apache.org/maven-ci-friendly.html) allowing a more flexible approach to releasing without the need to edit POM files. This also impacts the creation of our feature files, which can now flexibly alter the versions of the bundles they deploy to match what's being built in by CI. The end result should be a much simpler time when we want to tag or release any particular commit. Signed-off-by: Tim Ward <timothyjward@apache.org> (commit: 75ebfda ) The file was modified examples/pom.xml The file was modified southbound/virtual/pom.xml The file was modified distribution/launcher/pom.xml The file was modified core/annotation/pom.xml The file was modified southbound/mqtt/mqtt-client/pom.xml The file was modified core/geo-json/pom.xml The file was modified distribution/features/northbound-oidc-authenticator-feature/pom.xml The file was modified southbound/history/pom.xml The file was modified southbound/mqtt/pom.xml The file was modified examples/model-based/pom.xml The file was modified southbound/history/history-api/pom.xml The file was modified northbound/sensorthings/rest.gateway/pom.xml The file was modified distribution/features/northbound-ogc-sensorthings-mqtt-feature/src/main/resources/northbound-ogc-sensorthings-mqtt-feature.json The file was modified core/models/provider/pom.xml The file was modified distribution/features/gogo-shell-feature/pom.xml The file was modified distribution/features/jakarta-servlet-whiteboard-feature/pom.xml The file was modified northbound/session/pom.xml The file was modified southbound/http/http-callback-whiteboard/pom.xml The file was modified northbound/query-handler/pom.xml The file was modified distribution/features/virtual-temperature-sensor-feature/src/main/resources/virtual-temperature-sensor-feature.json The file was modified distribution/features/northbound-oidc-authenticator-feature/src/main/resources/northbound-oidc-authenticator-feature.json The file was modified northbound/rest/pom.xml The file was modified pom.xml The file was modified southbound/http/http-device-factory/pom.xml The file was modified core/emf-api/pom.xml The file was modified northbound/session/session-impl/pom.xml The file was modified sensinact-bom/pom.xml The file was modified core/models/metadata/pom.xml The file was modified distribution/features/timescale-history-provider-feature/pom.xml The file was modified examples/action/pom.xml The file was modified southbound/virtual/virtual-temperature-sensor/pom.xml The file was modified core/pom.xml The file was modified examples/generic/pom.xml The file was modified northbound/session/session-api/pom.xml The file was modified core/models/pom.xml The file was modified distribution/features/core-feature/pom.xml The file was modified distribution/features/core-feature/src/main/resources/core-feature.json The file was modified distribution/features/jakarta-rest-whiteboard-feature/src/main/resources/jakarta-rest-whiteboard-feature.json The file was modified northbound/gogo-shell/pom.xml The file was modified northbound/sensorthings/filter/pom.xml The file was modified distribution/features/jakarta-rest-whiteboard-feature/pom.xml The file was modified distribution/pom.xml The file was modified distribution/features/northbound-websocket-feature/pom.xml The file was modified distribution/test-utils/pom.xml The file was modified core/api/pom.xml The file was modified core/impl/pom.xml The file was modified examples/notification/pom.xml The file was modified examples/reflective/pom.xml The file was modified distribution/assembly/pom.xml The file was modified northbound/sensorthings/rest.api/pom.xml The file was modified examples/push-based/pom.xml The file was modified southbound/device-factory/parser-json/pom.xml The file was modified northbound/security/security-api/pom.xml The file was modified southbound/mqtt/mqtt-device-factory/pom.xml The file was modified southbound/history/timescale-provider/pom.xml The file was modified northbound/websocket/pom.xml The file was modified examples/writable/pom.xml The file was modified distribution/features/jakarta-servlet-whiteboard-feature/src/main/resources/jakarta-servlet-whiteboard-feature.json The file was modified southbound/device-factory/pom.xml The file was modified northbound/security/openid-connect/pom.xml The file was modified southbound/pom.xml The file was modified northbound/sensorthings/dto/pom.xml The file was modified northbound/sensorthings/mqtt/pom.xml The file was modified distribution/features/gogo-shell-feature/src/main/resources/gogo-shell-feature.json The file was modified northbound/pom.xml The file was modified distribution/features/northbound-ogc-sensorthings-feature/pom.xml The file was modified examples/pull-based/pom.xml The file was modified southbound/http/pom.xml The file was modified northbound/sensorthings/pom.xml The file was modified southbound/device-factory/device-factory-core/pom.xml The file was modified northbound/filters/filters.core/pom.xml The file was modified distribution/features/northbound-ogc-sensorthings-feature/src/main/resources/northbound-ogc-sensorthings-feature.json The file was modified distribution/features/northbound-rest-feature/src/main/resources/northbound-rest-feature.json The file was modified distribution/features/northbound-websocket-feature/src/main/resources/northbound-websocket-feature.json The file was modified southbound/device-factory/parser-csv/pom.xml The file was modified distribution/features/pom.xml The file was modified distribution/features/virtual-temperature-sensor-feature/pom.xml The file was modified distribution/features/northbound-rest-feature/pom.xml The file was modified distribution/features/timescale-history-provider-feature/src/main/resources/timescale-history-provider-feature.json The file was modified distribution/features/northbound-ogc-sensorthings-mqtt-feature/pom.xml The file was modified northbound/filters/ldap/pom.xml The file was modified northbound/filters/pom.xml The file was modified northbound/security/pom.xml