power BI embedded : Error retrieving Access token - powerbi-embedded

When i try to integrate power BI report in my app i have this error:
Error retrieving Access token
AADSTS650: The user or administrator has not consented to use the application with ID '45ea49-48eb-4c4-a4ca-97dd84f5d85' named 'PBI Emb APP'. Send an interactive authorization request for this user and resource.
Can someone explain the problem.
regards,

You must log into Azure portal, go to Azure Active Directory -> App registrations, select your app, click View API permissions, and then grant admin consent by clicking the button at the bottom:
If you don't have access to the portal, or the button is disabled, you must ask your admin to do it for you.
This happens because you are logging in in an unattended way. If it was an interactive login, you will get a prompt to consent, but when doing it the way you do now, there is no way for prompting you to give the consent or decline it.

Related

AADSTS90094: The grant requires admin permission

When I am trying to sign in to an powerbi embedded application and while granting consent, then we get one of the following error. How can i fix this problem
Screenshot of problem
The root cause of the problem is User consent is disabled for the tenant.
To fix this issue we need to Enable user consent for the entire tenant (all users, all applications).
Follow these steps to enable user consent for tenant.
In the Azure portal, navigate to "Azure Active Directory" => "Users and groups" => "User settings".
Enable the "Users can consent to apps accessing company data on their behalf" setting and save the changes
An admin can grant permissions to the application - either for the entire tenant or a specific user.
References:
https://learn.microsoft.com/power-bi/developer/embedded/embedded-troubleshoot

Google Calendar OAuth 2.0 Error 403: access_denied

I have been trying to gain authorization from the Google Calendar API on my site so that I can access user calendar data. When I issue an HttpResponseRedirect from the desired view on my site via Django (to send the user to Google so they can provide the necessary permissions), the redirect works as expected. The issue is that on Google it's returning "error 403: access denied", along with a message stating that the developer must authorize my account before I can use the API (I'm trying to use a different Google account to log in for the purpose of testing). I've poked around the Google API site, but can't find where this authorization occurs. Any idea of where I might find this?
Full Specific Error Message.
Was able to fix it by adding additional test users on the Google Cloud Platform (console.cloud.google.com). Navigated to the relevant project under the dropdown in the top left corner, then from there clicked the "OAuth consent screen" tab on the left hand side. You should see the option there to add users under the "Test users" header

Permission to publish online in power BI

I have a problem when I try to publish a report on web. A message saying that I need the permission of my admin to create the embed codes.
And when I go to admin portal, there is error message
embed code
admin portal
As of February 2020, using the 'publish to web' function setting has changed, and is turned off by default, and can only be activated by the O365 admin or a defined Power BI Admin user. Under a normal Pro/Free user setting you don't get admin rights, or see the full admin portal.
More details can be found here

Can we use Instagram for Oauth2 login for normal, business, and creator accounts?

The current state of using Instagram for Oauth2 login for mobile/web apps is not clear to me.
The old Oauth system appears to be no longer accepting new apps. The new Instagram Basic Display API also states explicitly:
You can't use the API to create user accounts or log your app users into your app
https://developers.facebook.com/docs/instagram-basic-display-api/
It appears that the minimum scope is user_profile, but when I try to use that scope I get an invalid scope error that does not reflect the requested scopes.
{"error_type": "OAuthException", "code": 400, "error_message": "Invalid scope: []"}
It appears that there is also extensive requirements for accessing this API like submitting a passport photo. The documentation also makes it sound like Instagram Basic Display API will not work with business or creator accounts, making it sound as if the API is now fragmented.
And finally there are Instagram Testers for sandbox accounts under Roles... but when you select an account it says "accountname (pending)" and provides no instructions for how to accept an invite, and if you visit instagram.com/developers with the test account and click "Sandbox invites" there is nothing there, and the user does not receive any kind of email.
Can anyone shed light on the current status of using Instagram for Oauth2 for the purposes of authenticating login into a mobile/web app?
Other reading: https://community.auth0.com/t/instagram-login-is-deprecated-and-the-documentation-on-auth0-is-broken/24122/20
For the Tester Invite:
Login to Instagram on a desktop
Click the person icon on the top right-hand side
Click the Cog icon next to Edit Profile
Select Authorized Apps in the popup
Select Tester Invites tab
Click Accept for your app
Once you accept the tester invite, the invalid scope error will hopefully go away.

Embed Power BI content into an application for your organization users - Need Admin Approval Error

We are trying to embed PowerBI report in the website and we have followed the step from below link.
https://learn.microsoft.com/en-us/power-bi/developer/embed-sample-for-your-organization
We have download the User Owns Data sample from GitHub to get started. Now, We are getting below error while running the application.
https://oxcrx34285.i.lithium.com/t5/image/serverpage/image-id/181463i44C126096E9419F3/image-size/large?v=1.0&px=999
SAT Report 5 app created on Azure --> App Registration and It's having following permissions.
https://oxcrx34285.i.lithium.com/t5/image/serverpage/image-id/181462i5D003092A86DE647/image-size/large?v=1.0&px=999
As we got an error of need admin approval, Do we need to set up the app using Admin login?
On portal.azure.com, got to App Registrations and select your application. Under Manage click the API Permissions link. On the bottom of this page there is a Grant Admin Consent button. If you dont see the button you dont have permission and will have to connect with whoever manages your tenant.