Where are OData/ADF Access Tokens stored?

4

We have two serves running an OData CD Web Service behind a load balancer (each pointing at the same clustered Broker DB). Our web apps are configured to get an Access Token before making requests to the actual service.

So what I want to understand is... do I need to make sure that the Web App requests the Access Token and the Data from the same server, or is the Token stored in the Broker DB so that it can be shared between both Odata Web Services

Chris Summers

Posted 2015-09-01T23:27:05.510

Reputation: 7 657

Answers

3

The data can be shared across machine using following:

In the cd_storage_conf.xml, in session wrappers give the same machine name across all the servers that are sharing the access token.

Given below is the sample sessionwrapper. Here, you can replace xyz with some meaningful machine name and then data from all the servers will be stored in session broker database with that machine name.

<Wrappers>
            <Wrapper Name="SessionWrapper">
                <Timeout>120000</Timeout>
                <MachineName>xyz</MachineName>
                <Storage Type="persistence" Id="db-session-webservice" 

dialect="MSSQL"Class="com.tridion.storage.persistence.JPADAOFactory"> 
... 
</Storage>

</Wrapper>          
</Wrappers>

Reference: Tridion documentation for load balancing

Hiren Kaku

Posted 2015-09-01T23:27:05.510

Reputation: 3 200

This configuration element is specific to Experience Manager which might not be used here at all. The same applies to the referenced documentation section... – Bjørn van Dommelen – 2015-09-04T09:34:49.863