Coder Social home page Coder Social logo

Comments (2)

bguidinger avatar bguidinger commented on August 12, 2024

@derekfinlinson I ran into your second issue during my testing. It seems that the access token needs to have an actual user context (i.e. not an application user) in order to successfully render the reports. This is probably because of some internal AD calls that the SSRS servers do. The downside, of course, is that you have to get an access token with a username/password which is less secure than other OAuth flows.

The Client ID that's hard-coded is actually the same one used by the Plugin Registration Tool, so it was created by Microsoft and lives in their AD tenant. It's fairly unlikely that it will ever change/be disabled. Is that why you would prefer to use your own app registration?

I could probably add it as a custom "override" parameter on the plugin registration. If it's provided, use it...otherwise default to the one from the Plugin Registration Tool.

With that said, I'm not sure why you're getting a 401 when using your own Client ID. One thing to check would be if you granted admin consent on the API Permissions tab of the app registration. If I remember right that is necessary since the user doesn't get the popup asking them to consent (as you would in a traditional implicit OAuth flow).

from xrm.reportscheduler.

derekfinlinson avatar derekfinlinson commented on August 12, 2024

Thanks @bguidinger that all makes sense. I was concerned something may happen to the client id but since it's from MS i'm sure it's safe to use.

from xrm.reportscheduler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.