GithubHelp home page GithubHelp logo

bennym / powerbi-csharp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from microsoft/powerbi-csharp

6.0 6.0 2.0 27.86 MB

Welcome to the unofficial port of the .NET SDK for Power BI to .NET Standard 2.0. Here you will find resources on how to use the SDK in .NET Core or with other .NET Standard projects.

Home Page: https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-embedding/

License: Other

C# 100.00%

powerbi-csharp's People

Contributors

aeshirey avatar ali-hamud avatar aluong avatar amervitz avatar arinahantsis avatar bennym avatar diklab avatar druttka avatar dvana avatar eligr avatar gilitaragano avatar gregorybor avatar jovanms avatar mahirdiab avatar mattmazzola avatar msftgits avatar noanu avatar ranbreuer avatar selasagi avatar t-yoigra avatar wbreza avatar yoavo avatar zakharborodin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

powerbi-csharp's Issues

submitting http request returns html "Continue" page

Hi,

I have the exact issue of .net core not accepting UserPasswordCredential() and when I follow your code, I get a html response instead of json. My username and password should be fine since it works when I use it in the AppOwnsData example. Here is what I get when running the program (it actually fails then the program tries to parse the html as JSON) . I get the same thing when I try to run this request in postman.

<title>Continue</title>

Script is disabled. Click Submit to continue

<script language="javascript">window.setTimeout('document.forms[0].submit()', 0);</script>

Thank you for your help!

Regards,
Paul

Getting "Attempted to access an element as a type incompatible with the array" when doing new PowerBIClient

Hi,

I am trying to create a new PowerBIClient as below:
new PowerBIClient(new Uri(<someUri>), tokenCredentials)
The token is a TokenCredentials with Bearer token.
But I only get a:
System.Private.CoreLib: Attempted to access an element as a type incompatible with the array.

I am using:

Microsoft.AspNet.WebApi.Client" Version="5.2.6"
Microsoft.Azure.KeyVault" Version="2.3.2" />
Microsoft.Azure.Services.AppAuthentication" Version="1.1.0-preview"
Microsoft.Azure.WebJobs" Version="3.0.0-beta5"
Microsoft.CSharp" Version="4.5.0" />
Microsoft.IdentityModel.Clients.ActiveDirectory" Version="3.14.2"
Newtonsoft.Json" Version="11.0.2"
PowerBI.Api" Version="1.0.9"
WindowsAzure.Storage" Version="8.6.0"

Please advise.

EffectiveIdentity does not support customData

This property is missing on EffectiveIdentity:

[JsonProperty(PropertyName = "customData")]
public string CustomData { get; set; }

If we are calling the REST API, we can add custom data inside each identity, e.g.:

{
"accessLevel": "View",
"identities": [
{
"username": "EffectiveIdentity",
"roles": [ "Role1", "Role2" ],
"customData": "MyCustomData",
"datasets": [ "fe0a1aeb-f6a4-4b27-a2d3-b5df3bb28bdc" ]
}
]
}

https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security

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.