2018 Aug 13 11:29 PM - edited 2024 Feb 04 6:38 AM
how do we handle the OAuth port and export url for the different hybris targets?
i see in the local properties we have the following:
datahub.extension.exportURL=http://localhost:19001/datahubadapter
datahub.extension.userName=admin
datahub.extension.password=nimda
datahub.core.export.service.clientid=demo
datahub.core.export.service.clientsecret=secret
datahub.core.export.service.oauth.port=19002
How do we switch the oauth and export url in the target code?
Request clarification before answering.
When defining a Target System you have flexibility to use whatever property you want. So if you have Target System 1 and Target System 2 then when you define each in your extension xml you can use the following for the first Target System definition
<exportURL>${datahub.target1.exportURL}</exportURL>
and the following for the second Target System definition
<exportURL>${datahub.target2.exportURL}</exportURL>
See this page of the docs for details: Connecting to the Target System
OAuth port would be different. You are using different OAuth ports on different Hybris targets? If so you could potentially override bean oAuthTokenUrlStrategy to suit your needs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.