From 5ed7b60ae24c77b85f5aa03c669c9499d662090f Mon Sep 17 00:00:00 2001 From: sinthuja Date: Mon, 17 Apr 2017 16:23:36 +0530 Subject: [PATCH] Fixing SSO issue with keymanager profile. --- .../src/core/bin/profile-creator.sh | 2 + .../identity/application-authentication.xml | 161 ++++++++++++++++++ modules/p2-profile/iot-core-profile/pom.xml | 8 +- 3 files changed, 168 insertions(+), 3 deletions(-) create mode 100644 modules/distribution/src/core/resources/profiles/keymanager/identity/application-authentication.xml diff --git a/modules/distribution/src/core/bin/profile-creator.sh b/modules/distribution/src/core/bin/profile-creator.sh index 10fa3a91..4b98d665 100644 --- a/modules/distribution/src/core/bin/profile-creator.sh +++ b/modules/distribution/src/core/bin/profile-creator.sh @@ -120,6 +120,7 @@ then rm -rf ${DIR}/profile-creator.bat cp -rf ${DIR}/../repository/resources/profiles/keymanager/*.sh ${DIR}/../bin/ cp -rf ${DIR}/../repository/resources/profiles/keymanager/carbon.xml ${DIR}/../conf/ + cp -rf ${DIR}/../repository/resources/profiles/keymanager/identity/application-authentication.xml ${DIR}/../conf/identity/ rm -rf ${DIR}/../repository/deployment/server/jaggeryapps/* rm -rf ${DIR}/../repository/deployment/server/synapse-configs/default/api/* rm -rf ${DIR}/../repository/deployment/server/synapse-configs/default/sequences/_*.xml @@ -127,6 +128,7 @@ then cp ${DIR}/../repository/deployment/server/webapps/oauth2.war ${DIR}/../repository/deployment/server/tempwebapp/ cp ${DIR}/../repository/deployment/server/webapps/client-registration#v0.11.war ${DIR}/../repository/deployment/server/tempwebapp/ cp ${DIR}/../repository/deployment/server/webapps/dynamic-client-web.war ${DIR}/../repository/deployment/server/tempwebapp/ + cp ${DIR}/../repository/deployment/server/webapps/authenticationendpoint.war ${DIR}/../repository/deployment/server/tempwebapp/ rm -rf ${DIR}/../repository/deployment/server/webapps/* cp -rf ${DIR}/../repository/deployment/server/tempwebapp/* ${DIR}/../repository/deployment/server/webapps/ rm -rf ${DIR}/../repository/deployment/server/tempwebapp diff --git a/modules/distribution/src/core/resources/profiles/keymanager/identity/application-authentication.xml b/modules/distribution/src/core/resources/profiles/keymanager/identity/application-authentication.xml new file mode 100644 index 00000000..f242c3c1 --- /dev/null +++ b/modules/distribution/src/core/resources/profiles/keymanager/identity/application-authentication.xml @@ -0,0 +1,161 @@ + + + + + + + smart + + + /authenticationendpoint/login.do + + + + org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator + org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler + org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultLogoutRequestHandler + org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler + org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultRequestPathBasedSequenceHandler + org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler + org.wso2.carbon.identity.application.authentication.framework.handler.hrd.impl.DefaultHomeRealmDiscoverer + org.wso2.carbon.identity.application.authentication.framework.handler.claims.impl.DefaultClaimHandler + org.wso2.carbon.identity.application.authentication.framework.handler.provisioning.impl.DefaultProvisioningHandler + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /authenticationendpoint/login.do + /repository/resources/security/client-truststore.jks + wso2carbon + + + + https://accounts.google.com/o/oauth2/token + https://accounts.google.com/o/oauth2/auth + https://www.googleapis.com/oauth2/v3/userinfo + + + https://login.live.com/oauth20_token.srf + https://login.live.com/oauth20_authorize.srf + https://apis.live.net/v5.0/me?access_token= + + + https://graph.facebook.com/oauth/access_token + http://www.facebook.com/dialog/oauth + https://graph.facebook.com/me + + + /authenticationendpoint/fido-auth.jsp + + + https://api.login.yahoo.com/oauth2/get_token + https://api.login.yahoo.com/oauth2/request_auth + https://social.yahooapis.com/v1/user/ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/modules/p2-profile/iot-core-profile/pom.xml b/modules/p2-profile/iot-core-profile/pom.xml index 3792f4f3..2cfb7463 100644 --- a/modules/p2-profile/iot-core-profile/pom.xml +++ b/modules/p2-profile/iot-core-profile/pom.xml @@ -2105,9 +2105,7 @@ ${carbon.commons.version} - - org.wso2.carbon.identity.application.authenticator.basicauth.server.feature.group - + org.wso2.carbon.identity.application.authenticator.basicauth.server.feature.group ${identity.local.auth.basicauth.version} @@ -2475,6 +2473,10 @@ org.wso2.carbon.analytics.api.client.feature.group ${carbon.analytics.version} + + org.wso2.carbon.identity.sso.saml.feature.group + ${identity.inbound.auth.saml.version} +