@custom authentication
3 TopicsCustom authentication in PowerBI Desktop - need UniqueId or LocalStorage
Hey All, We're creating an authentication for our custom visual in PowerBI desktop -only- following along with https://community.fabric.microsoft.com/t5/Developer/How-was-authentication-accomplished-in-ArcGIS-Maps-for-Power-BI/m-p/1023081. We're use `this.visualHost.launchUrl` to trigger creation of an token, then polling the backend for the token & storing it via persistParameters. So far, so good. The problem though is that parameters are embedded in the pbix file, which means if a file is shared, so is the authentication. This is less than ideal, and so we are looking at our options for preventing this. The ideal one appears to be using Local Storage API, however this requires certification, and certification forbids queries to external sources. (Also, I recieved an 'undeliverable' notification when emailing [email protected] - is that normal?). Failing this, then the next best option would be to use any kind of identifier that is unique to the PowerBI Desktop installation. Is there anything present in the info passed to the custom visual that could be used even semi-reliably in this manner? UniqueId unfortunately is per-instance of the custom visual, and I've yet to turn anything else up that could help. Any suggestions on where to look for a UniqueID, or any kind of machine-local storage we could use?Custom App Visual - Monthly Calendar Schedule
Attached are some sketches below, Refer to the monthly calendar for January 2023. Looking at the first full week as example, this is my desired output for a custom app visual, but it will show the entire Month. You’ll notice that I have “0 hr” and “24 hr” on the left and right sides of the calendar week. Now my question is how can I fill each date “block” with color and text formatting based on START_TIME_DATE and END_TIME_DATE and the type of event (Hi-Lo, Alt2,...ect)? I'm just now tinkering with creating my own custom app visual portion of Power BI, so I have been reading about the "how to get started..." Any tips, tricks, tutorials, or documentation would be appreciated! Thank you in advance!Create a mutable global variable in M language
Hi, community, I'm working on a custom connector that needs to authenticate before data representation is done, and to do this I don't want to hardcode the auth credentials in my source code. So, I declared a global list variable named config = {"a"}; and in the shared MyCustomConnector.Contents function, I'm doing a List.ReplaceValue on item "a" in the list above. shared MyCustomConnector.Contents = (BaseUrl as text, ClientId as text) => List.ReplaceValue(config, "a", BaseUrl, Replacer.ReplaceText); so in my StartLogin function, I can just call the config by index like this. //Start Login StartLogin = (resourceUrl, state, display) => let AuthorizeUrl ="https://"&Text.From(config{0})&"/oauth/authorize?" & Uri.BuildQueryString( [ client_id = "11", response_type="code", state = state, redirect_uri = redirect_uri ] ) in [ LoginUri = AuthorizeUrl, CallbackUri = redirect_uri, WindowHeight = windowHeight, WindowWidth = windowWidth, Context = null ]; But it appears that, the List.ReplaceValue is not being executed because whenever I try to set credential for authentication, "a" is being passed into the URL. Any help will be much appreciated949Views0likes1Comment