Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample showing use of security token #29

Open
moggoly opened this issue Oct 8, 2020 · 1 comment
Open

Sample showing use of security token #29

moggoly opened this issue Oct 8, 2020 · 1 comment

Comments

@moggoly
Copy link

moggoly commented Oct 8, 2020

Hi,

We're considering purchasing ActiveReports.NET for use within our Angular/Vue app with a .NET Core backend. It's been hard to track down, but I see there is support for including a security token from the JSViewer side, but I can't see any documentation or sample code showing how that token is handled on the backend. Would it be possible for a sample to be included or a snippet showing how this is done? We will probably be using a JWT for the token, but need to see how this can be verified.

Thanks.

@sAbakumoff
Copy link
Contributor

Hello,
Recently we also introduced the onRequest parameter of the reportService option for JSViewer:
https://www.grapecity.com/activereports/docs/v14/online/using-js-viewer.html
It allows supplying any information within the request, including any authorization method.
Handling the auth token on the server side depends on what exactly you would like to achieve. If you would like to prevent unauthorized users from viewing a report, then the method described in the following article might be helpful
https://www.grapecity.com/blogs/using-asp-dot-net-core-middleware-to-add-analytics-to-activereports-javascript-vewer-based-applications

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants