cancel
Showing results for 
Search instead for 
Did you mean: 

how do we handle the OAuth port and export url for the different hybris targets?

former_member473180
Participant
0 Kudos
285

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member333910
Active Participant
0 Kudos

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.