Skip to content

Sample showing use of security token #29

Open

Description

@moggoly

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.

Activity

  1. sAbakumoff commented on Oct 13, 2020

    @sAbakumoff
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions