Freaking amazing video man! Just an advice do the ones that are starting on python... I couldn't set the cred.py file, nor install the package, so i just created the variable with username and password. It's not the best practice to do, but it worked properly, so let the future me worry about secury stuff lol.
Wonderful video its work to me, but at the same in my side *Disable Default Security* option not necessary to me just apply ** is enough to me and its work...!, once again thank you so much...
Thank you. Great content and now I see how to connect Python to a power bi dataset. I wonder if you can query a power bi dataset as if it is a database?
Hi, thank you for perfect and detailed video. Maybe you can help me with one issue. I fail to authenticate using username and password (I get an "The access policy does not allow token issuance." - which should mean that I need to use MFA - company policy that cannot be avoided). When I use Confidential client then i can get a Access token, but it gets refused by the http call (401 error). Any idea how can I perform a MFA authentication and get a functional token, please? Thanks a lot for your answer.
Hey :) Thanks for the detailed video!! When trying to register application I get this error: Error when registering application: ERROR: Request returned Forbidden and graph API request id: {id} Do you know what can be the problem? thanks!
Hey, If i don't own pbi pro, and my co worker is creating the app our team use, can i use his app client id and secret with my user, in my code, in order to fetch data from the api? will i'll be able to create access token?
I am trying with MSAL ConfidentialClientApplication, I am getting the token correctly, but the last part is not working for me... Do I need to change the way I build my endpoint? Or How I know which is my endpoint? Hope you could solve my doubt c:
Hello, when I check the reponse to the access token, I see that the scope returned in my access token is 00000002-0000-0000-c000-000000000000, and not the actual scopes defined in the app. Do you have any idea why ? Thanks a lot !!
@@JJPowerBI Thank you for your response. The username and password you used are admin credentials ? I am trying to connect without using a user credentials...
HI Sir, while running response = client.acquire_token_by_username_password(username=username, password=password, scopes= scopes) I am getting below error: 'WsTrust server returned error in RSTR: {'reason': 'Authentication failed', 'code': 'wst:FailedAuthentication'}' any idea how can we resolve this?
enable security defaults is by default in my case still getting error. please help. getting an error 'error': 'invalid_grant', 'error_description': "AADSTS65001: The user or administrator has not consented to use the application.
@@AntrikshSharma Thanks much man. The domain name isn't verified that's why I was not getting an option to grant. I did it by visiting admin.microsoft.com and it's working now.
Hi, I'm on Step 1: Generating Access Token and get this error: ImportError: cannot import name 'username' from 'cred' (C:\Users\talha.farooq\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\cred\__init__.py) I have installed cred module Could you please let me know what am I missing?