We've encountered this error in the past and we were able to uncover a few solutions. To help other developers encountering the issue save time and correct the issue, we have provided our solutions below. Before we are able to correct the error, first we must understand the error.
Service parameters allow users access to content based upon authorization levels identified by the token. The authorization token communicates the level of access based on context and user information to WebCenter.
When working through a solution it is important to note that the actual error being encountered is !csInvalidAuthorizationToken
The solutions to the missing Authorization Token are covered below.
Rarely will reloading the page solve the issue and the same error message will be thrown. Reloading the page will only solve the issue of the issue was with the page load. A missing authorization token cannot be fixed by reloading the page.
There is no need to panic if this is the case; there are other solutions that we will walk you through. Below are three alternate solutions not mentioned by the default error message that will correct the issue with the missing token.
The solutions below will show a small component using 2 services (MyCustomService and MyTokenService) and 1 template to help visualize the concepts.
This can be carried out during the addition of a new service or editing of an old service.
In Content Server services are added and edited using the component wizard. This is where we must set the service to scriptable.
Although this solution is effective it may not always be the best route. When the service is set to scriptable Content Server will recognize any user accessing the service as an administrator, thus creating a security risk.
Click to enlarge solution images for better viewing.
This can be done by adding the variable DisableAuthorizationTokenCheck=true into the \ucm\cs\config \config.cfg file. By default the option is set to false.
The only difference from solution two is the syntax of the template. In an HCSF an IdocScript snippet must open with <!--$ and close with --> so the entire snippet of code will look like <input name="idcToken" value="<!--$idcToken-->">
If you are having other issues, please identify them in the comments below or through our contact form and we will make sure to address them in an upcoming blog posts.
| || || |