<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting around Oauth2 in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Getting-around-Oauth2/m-p/185893#M5928</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/31777"&gt;@Kassii&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Technically it is possible. You can get a token from the API POST&amp;nbsp;&lt;A href="https://login.windows.net/common/oauth2/token" target="_blank"&gt;https://login.windows.net/common/oauth2/token&lt;/A&gt; with GRANT_TYPE=password&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;POST /common/oauth2/token HTTP/1.1
Host: login.windows.net
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache
Postman-Token: 14968174-d130-31dd-7dac-f78c06844286

client_secret=zmZ%2BC1nx3SXgrBzVOce%2BPb4T6uxrpnmmDPHahzPUhE4%3D&amp;amp;client_id=30d8120d-52c9-40f1-ac3b-d0c6720f0f20&amp;amp;grant_type=password&amp;amp;resource=https%3A%2F%2Fanalysis.windows.net%2Fpowerbi%2Fapi&amp;amp;username=&lt;STRONG&gt;YOURUSERNAME&lt;/STRONG&gt;%40microsoft.com&amp;amp;password=&lt;STRONG&gt;YOURPASSWORD&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then keep getting access token via the &lt;A href="https://blogs.msdn.microsoft.com/aadgraphteam/2013/05/16/using-oauth-2-0-authorization-code-grant-for-delegated-access-of-directory-via-aad-graph/" target="_self"&gt;refresh_token&lt;/A&gt; in above response.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;However I doubt this would violate the license compliance as all people would aceess the restricted reports/dashoboard &amp;nbsp;with the same&amp;nbsp;credential.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For public sharing, you can consider "&lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-service-publish-to-web/" target="_self"&gt;Publish to web&lt;/A&gt;" or &lt;A href="https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-what-is-power-bi-embedded" target="_self"&gt;Power BI Embedded&lt;/A&gt;&amp;nbsp;which have no user licenses at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jun 2017 02:41:04 GMT</pubDate>
    <dc:creator>Eric_Zhang</dc:creator>
    <dc:date>2017-06-06T02:41:04Z</dc:date>
    <item>
      <title>Getting around Oauth2</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-around-Oauth2/m-p/184895#M5913</link>
      <description>&lt;P&gt;Hi guys.&lt;BR /&gt;&lt;BR /&gt;Just wondering if anyone can give me a hand and answer this query&lt;BR /&gt;&lt;BR /&gt;Is it possible to have the credentials for Oauth2 hard coded in as opposed to when I request the access token and have to enter them?&lt;BR /&gt;&lt;BR /&gt;Or is there a way to make dashboards and reports 100% public so that all that is required is to just load the webpage (so to speak) and the iFrames will be present with data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be great guys &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 22:51:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-around-Oauth2/m-p/184895#M5913</guid>
      <dc:creator>Kassii</dc:creator>
      <dc:date>2017-05-30T22:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting around Oauth2</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-around-Oauth2/m-p/185893#M5928</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/31777"&gt;@Kassii&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Technically it is possible. You can get a token from the API POST&amp;nbsp;&lt;A href="https://login.windows.net/common/oauth2/token" target="_blank"&gt;https://login.windows.net/common/oauth2/token&lt;/A&gt; with GRANT_TYPE=password&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;POST /common/oauth2/token HTTP/1.1
Host: login.windows.net
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache
Postman-Token: 14968174-d130-31dd-7dac-f78c06844286

client_secret=zmZ%2BC1nx3SXgrBzVOce%2BPb4T6uxrpnmmDPHahzPUhE4%3D&amp;amp;client_id=30d8120d-52c9-40f1-ac3b-d0c6720f0f20&amp;amp;grant_type=password&amp;amp;resource=https%3A%2F%2Fanalysis.windows.net%2Fpowerbi%2Fapi&amp;amp;username=&lt;STRONG&gt;YOURUSERNAME&lt;/STRONG&gt;%40microsoft.com&amp;amp;password=&lt;STRONG&gt;YOURPASSWORD&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then keep getting access token via the &lt;A href="https://blogs.msdn.microsoft.com/aadgraphteam/2013/05/16/using-oauth-2-0-authorization-code-grant-for-delegated-access-of-directory-via-aad-graph/" target="_self"&gt;refresh_token&lt;/A&gt; in above response.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;However I doubt this would violate the license compliance as all people would aceess the restricted reports/dashoboard &amp;nbsp;with the same&amp;nbsp;credential.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For public sharing, you can consider "&lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-service-publish-to-web/" target="_self"&gt;Publish to web&lt;/A&gt;" or &lt;A href="https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-what-is-power-bi-embedded" target="_self"&gt;Power BI Embedded&lt;/A&gt;&amp;nbsp;which have no user licenses at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 02:41:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-around-Oauth2/m-p/185893#M5928</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-06-06T02:41:04Z</dc:date>
    </item>
  </channel>
</rss>

