diff --git a/modules/broker/distribution/src/main/conf/broker.xml b/modules/broker/distribution/src/main/conf/broker.xml index 0551a2a6..ade1fa3e 100755 --- a/modules/broker/distribution/src/main/conf/broker.xml +++ b/modules/broker/distribution/src/main/conf/broker.xml @@ -117,7 +117,8 @@ This file is ciphertool compliant. Refer PRODUCT_HOME/repository/conf/security/c 32768 @@ -171,13 +172,23 @@ This file is ciphertool compliant. Refer PRODUCT_HOME/repository/conf/security/c inherit from org.dna.mqtt.moquette.server.IAutherizer Note: default implementation authorizes against carbon permission with the topic. --> - + - /permission/admin/device-mgt/user - /permission/admin/device-mgt/admin - mqtt-subscriber - mqtt-subscriber - device-mgt + + + /permission/device-mgt/user/groups/device_events + + /permission/device-mgt/user/groups/device_operation + + admin + admin + https://localhost:9443/oauth2 + + 100 + https://localhost:9443 diff --git a/modules/core/distribution/src/assembly/bin.xml b/modules/core/distribution/src/assembly/bin.xml index b30ac330..0cac429d 100644 --- a/modules/core/distribution/src/assembly/bin.xml +++ b/modules/core/distribution/src/assembly/bin.xml @@ -1176,15 +1176,6 @@ true 644 - - - - ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/device-mgt-scopes.xml - - ${pom.artifactId}-${pom.version}/repository/conf/etc - true - 644 - diff --git a/modules/core/distribution/src/repository/conf/identity/identity.xml b/modules/core/distribution/src/repository/conf/identity/identity.xml index f4930e5a..af9e7900 100644 --- a/modules/core/distribution/src/repository/conf/identity/identity.xml +++ b/modules/core/distribution/src/repository/conf/identity/identity.xml @@ -149,16 +149,11 @@ iwa:ntlm org.wso2.carbon.identity.oauth2.token.handlers.grant.iwa.ntlm.NTLMAuthenticationGrantHandler - - urn:ietf:params:oauth:grant-type:jwt-bearer - org.wso2.carbon.device.mgt.oauth.extensions.handlers.grant.ExtendedDeviceMgtJWTBearerGrantHandler - org.wso2.carbon.device.mgt.oauth.extensions.validators.ExtendedDeviceJWTGrantValidator - - - device-mgt:password - org.wso2.carbon.device.mgt.oauth.extensions.handlers.grant.ExtendedDeviceMgtPasswordGrantHandler - org.wso2.carbon.device.mgt.oauth.extensions.validators.ExtendedDevicePasswordGrantValidator - + + urn:ietf:params:oauth:grant-type:jwt-bearer + org.wso2.carbon.identity.oauth2.grant.jwt.JWTBearerGrantHandler + org.wso2.carbon.identity.oauth2.grant.jwt.JWTGrantValidator +