...
Note |
---|
This guide assumes that WSO2 Identity Server runs with port offset 1. Therefore, the $ {IS_SERVER_HOST} = localhost and the ${IS_SERVER_PORT} = 9444. |
- Change the following config elements in the
<APPM_HOME>/repository/conf/app-manager.xml
file.- Change the
ServerURL
,Username
andPassword
elements in the<AuthManager>
section to point to the Identity Server URL and credentials.
Code Block language xml <ServerURL>https://<IS_SERVER_HOST>:{IS_SERVER_PORT}/services/</ServerURL> <ServerURL>https://localhost:9444/services/</ServerURL>
- Change the
providerURL
element in the<SSOConfiguration>
section as shown below:
Code Block language xml <IdentityProviderUrl>https://localhost:9444/samlsso</IdentityProviderUrl> <providerURL>https://localhost:9444</providerURL>
Change the
ServerURL
element in the<EntitlementServiceConfiguration>
section as shown below:Code Block language xml <ServerUrl>https://localhost:9444</ServerUrl>
- Change the
Change the
identityProviderURL
config in the<AppM_HOME>/repository/deployment/server/jaggeryapps/store/config/store.json
file as shown below:Code Block language java "ssoConfiguration": { "enabled": true, "issuer": "store", "identityProviderURL": "https://localhost:9444/samlsso", "keyStorePassword": "wso2carbon", "identityAlias": "wso2carbon", "responseSigningEnabled": "true", "storeAcs" : "%https.host%/store/acs", "keyStoreName": "/repository/resources/security/wso2carbon.jks" },
Change the
identityProviderURL
element in the<AppM_HOME>/repository/deployment/server/jaggeryapps/publisher/config/publisher.json
file as shown below:Code Block language java "ssoConfiguration": { "enabled": true, "issuer": "publisher", "identityProviderURL": "https://localhost:9444/samlsso", "keyStorePassword": "wso2carbon", "identityAlias": "wso2carbon", "responseSigningEnabled": "true", "publisherAcs": "%https.host%/publisher/sso", "keyStoreName": "/repository/resources/security/wso2carbon.jks" },
- Start both the AppM and IS servers.
- Login to WSO2 IS and create three service providers for store, publisher and social apps with the following information:
SP for Store
Issuer: store
Assertion Consumer URL: https://localhost:9443/store/acs (i.e https://{AppMHost}:{AppMPort}/store/acs)
Enable Response Signing: true
Enable Single Logout: true
SP for Publisher
Issuer: publisher
Assertion Consumer URL: https://localhost:9443/publisher/acs (i.e https://{AppMHost}:{AppMPort}/publisher/acs)
Enable Response Signing: true
Enable Single Logout: true
SP for Social
Issuer: publisher
Assertion Consumer URL: https://localhost:9443/social/acs (i.e https://{AppMHost}:{AppMPort}/social/acs)
Enable Response Signing: true
Enable Single Logout: true