This is a migrated thread and some comments may be shown as answers.

Report Viewer not generating Authentication Token - Angular 4 - R2 2017

3 Answers 406 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
veggiedude
Top achievements
Rank 1
veggiedude asked on 13 Jun 2017, 10:44 AM

Hi,

I'm using the HTML5 Telerik Report Viewer R2 2017 for Angular 4.

I was able to set the authentication token through the report viewer's property authenticationToken. But when I load the report in my browser, no Authentication Bearer Token is generated in the Request produced by the report viewer.

 

The following is the Request Header where the token is supposed to be generated:

Accept: application/json, text/javascript, */*; q=0.01
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.8
Connection: keep-alive
Host: localhost:21021
Origin: http://localhost:4200
Referer: http://localhost:4200/app/reports/studentinvoice/000000155-1-15
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36

 

 

3 Answers, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 14 Jun 2017, 12:26 PM
Hi veggiedude,

On our side the token can be generated as expected - screen shot. Make sure you use the lastes version R2 2017 as there was an issue with authentication token not being not sent when using a REST service in earlier versions.


Regards,
Katia
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
veggiedude
Top achievements
Rank 1
answered on 17 Jun 2017, 05:29 PM

Thanks a lot for your reply Katia.

I have reinstalled it to the latest version once again, that is R2 2017 SP1 (11.1.17.614), but the problem is the same. The token is still not generated.

0
Katia
Telerik team
answered on 19 Jun 2017, 01:18 PM
Hello veggiedude,

You can compare the settings of the Angular component with those provided below:
<tr-viewer #viewer1
    [containerStyle]="viewerContainerStyle"
    [reportSource]="{
        report: 'Telerik.Reporting.Examples.CSharp.ReportCatalog, CSharp.ReportLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null',
        parameters: {}
    }"
    [viewMode]="'INTERACTIVE'"
    [scaleMode]="'SPECIFIC'"
    [scale]="1.0"
    [ready]="ready"
    [authenticationToken]="'testtoken'"
    [viewerToolTipOpening]="viewerToolTipOpening">
</tr-viewer>

Using the above configuration, the token can be passsed as expected on our side - check this screen shot.


Regards,
Katia
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
veggiedude
Top achievements
Rank 1
Answers by
Katia
Telerik team
veggiedude
Top achievements
Rank 1
Share this question
or