Current filter:
                                You should refresh the page.
                                  • HI:

                                    I want to use the Document Viewer angular component to access a remote report server.

                                    dxrv-remote-settings - A nested component that enables you to configure the Web Document Viewer to display documents that are created remotely with the DevExpress Report and Dashboard Server.
                                    Option
                                    Required / Optional
                                    Description
                                    serverUri
                                    Required
                                    Specifies the Report and Dashboard Server URI.
                                    authToken
                                    Required
                                    Specifies the Bearer token to access documents on the Report and Dashboard Server.
                                    How to find the authToken on ReportServer?

                                1 Solution

                                Creation Date Importance Sort by

                                Hi Zhiwen,
                                To get a bearer token, it is necessary to send a POST request to the /oauth/token end point. More information about that along with relevant code can be found in our online documentation: Display Documents from the Report and Dashboard Server.
                                Please check it and let us know if there is any problem with following the outlined steps.

                                Regards,
                                Yaroslav

                                • Zhiwen Tan 09.19.2019
                                  [JavaScript]
                                  I used POSTMAN to test the API, like below: POST /oauth/token HTTP/1.1 Host: serverurl:83 Content-Type: application/x-www-form-urlencoded User-Agent: PostmanRuntime/7.16.3 Accept: */* Cache-Control: no-cache Postman-Token: 0f2fa022-b471-4ed3-9ef2-5128f0133b92,51fa3703-27fa-40aa-9ab7-4eaf8fd2ced7 Accept-Encoding: gzip, deflate Referer: http://serverurl:83/oauth/token Connection: keep-alive cache-control: no-cache grant_type=password&username=admin01&password=123456

                                  but I get 404 error, and I have set CORS enabled.

                                • Yaroslav (DevExpress Support) 09.20.2019

                                  I see you're using the HTTP protocol. By default, Report and Dashboard Server does not allow using OAuth over HTTP. To resolve this issue, open the IIS manager and create an HTTPS binding for the "DevExpres.ReportServer" web site. You'll need a valid certificate for that (a self-signed certificate should do).

                                  Regards,
                                  Yaroslav