From 780b6bab40ab553663f3c965b7872f66bd9ee25c Mon Sep 17 00:00:00 2001 From: Amalka Subasinghe Date: Mon, 21 Jun 2021 20:57:34 +0530 Subject: [PATCH] added identity-extension ouath2 component --- distribution/iot-community/target/timestamp | Bin 242 -> 242 bytes iot-core/pom.xml | 4 ++++ iot-core/src/assembly/bin.xml | 11 +++++++++++ iot-core/src/core/conf/deployment.toml | 7 +++++++ pom.xml | 5 +++++ 5 files changed, 27 insertions(+) diff --git a/distribution/iot-community/target/timestamp b/distribution/iot-community/target/timestamp index 4835c52b1f25915615000f8c9836c62aed406605..a036c8a94dcd22f8f3ae24d08c92cb0f8fa86645 100644 GIT binary patch delta 11 Scmeyw_=$1CI~EaTi3$K6{sb@p delta 11 Scmeyw_=$1CI~F172^9by&IFzS diff --git a/iot-core/pom.xml b/iot-core/pom.xml index 81e92d1..ee3864d 100644 --- a/iot-core/pom.xml +++ b/iot-core/pom.xml @@ -36,6 +36,10 @@ com.h2database.wso2 h2-database-engine + + org.wso2.carbon.devicemgt + org.wso2.carbon.device.mgt.oauth.extensions + diff --git a/iot-core/src/assembly/bin.xml b/iot-core/src/assembly/bin.xml index d8c350c..d3e55ad 100644 --- a/iot-core/src/assembly/bin.xml +++ b/iot-core/src/assembly/bin.xml @@ -85,4 +85,15 @@ + + + ${entgra-iot-core}/repository/components/dropins + + org.wso2.carbon.devicemgt:org.wso2.carbon.device.mgt.oauth.extensions + + + + + + diff --git a/iot-core/src/core/conf/deployment.toml b/iot-core/src/core/conf/deployment.toml index a4c16d7..4b63f91 100644 --- a/iot-core/src/core/conf/deployment.toml +++ b/iot-core/src/core/conf/deployment.toml @@ -302,3 +302,10 @@ maxHttpHeaderSize="16384" [transport.http.properties] maxHttpHeaderSize="16384" +[oauth.grant_type.jwt_bearer] +grant_handler="org.wso2.carbon.device.mgt.oauth.extensions.handlers.grant.ExtendedJWTGrantHandler" + +[[oauth.custom_grant_type]] +name="access_token" +grant_handler="org.wso2.carbon.device.mgt.oauth.extensions.handlers.grant.AccessTokenGrantHandler" +grant_validator="org.wso2.carbon.device.mgt.oauth.extensions.validators.AccessTokenGrantValidator" \ No newline at end of file diff --git a/pom.xml b/pom.xml index b5cb7ff..f504547 100644 --- a/pom.xml +++ b/pom.xml @@ -83,6 +83,11 @@ org.wso2.carbon.identity.jwt.client.extension ${carbon.device.mgt.version} + + org.wso2.carbon.devicemgt + org.wso2.carbon.device.mgt.oauth.extensions + ${carbon.device.mgt.version} +