Forum Discussion
rdc_green
5 years agoFrequent Visitor
Get an authentication access token
I have registered an app with Azure AD and now have an Application ID (Register an Azure AD application to use with Power BI) i've now tried to complete step 2 of the process, which is to Get an auth...
rdc_green
5 years agoFrequent Visitor
Thank you Anonymous for your suggestions I have attempted both ways and have the following issues:
Way 1
I have the following 4 errors
- Error CS0017 Program has more than one entry point defined. Compile with /main to specify the type that contains the entry point.
- Error CS0103 The name 'token' does not exist in the current context ConsoleApp1
- Error CS0103 The name 'GetToken' does not exist in the current context ConsoleApp1
- Error CS7036 There is no argument given that corresponds to the required formal parameter 'customWebUi' of 'PlatformParameters.PlatformParameters(PromptBehavior, ICustomWebUi)'
Way 2
I have the following error due to MFA
"AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '00000009-0000-0000-c000-000000000000'.\r\nTrace ID: 1134cdb0-67cf-4721-8611-15879e9fef00\r\nCorrelation ID: 56e71b1d-a011-4451-b385-87af8e3874c7\r\nTimestamp: 2021-07-05 08:11:03Z",
Do you have any suggestions to fix either of these ways?
Thank you
Richard
Anonymous
5 years agoNot applicable
Hi rdc_green
Please try below steps to fix Way 2:
1.Login as a tenant admin to https://portal.azure.com
2.Open the registration for your app in the
3.Go to Settings then Required Permissions
4.Press the Grant Permissions button
Note: If you are not a tenant admin, you cannot give admin consent
You may try the solutions provided in similar GitHub issue.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- rdc_green5 years agoFrequent Visitor
I managed to get my access token by disabling MFA in AAD