PowerBI / getting-started-web-app-asp.net

We moved this repo to https://github.com/Microsoft/PowerBI-CSharp/tree/master/samples/webforms/get-started-web-app-asp.net
19 stars 21 forks source link

getting issue in sign in click #4

Open kunalvirk opened 8 years ago

kunalvirk commented 8 years ago

getting this when clicking on sign in

Sign In Sorry, but we’re having trouble signing you in. We received a bad request.

Additional technical information: Correlation ID: bfb8f5bb-eb6a-4775-8cad-b57b6171d89d Timestamp: 2015-12-09 06:44:48Z AADSTS90014: The request body must contain the following parameter: 'client_id'.

PascalCeccaldi commented 8 years ago

Hi,

Have you set the "client id" and "client key" settings in the setting part ? As you should know those parameters are given when you create your app on powerbi.com.

kunalvirk commented 8 years ago

hi, N0, i donot have any any about this i only know powerbi login credentials please can you tell how to pass this cleint id and client key

skymanaditya1 commented 8 years ago

Register your application here -> https://dev.powerbi.com/apps

Sign in with your Power BI service account.

Provide the App Name and choose "Server Side Web App" in App Type if it is asp.net web application and "Native App" if it is a Console Application.

Your redirect URL has to be configured next. If you are using an asp.net web application, the redirect URL has to be the URL of the page where Power BI redirects the request after the authentication is complete. For a Console Application use this URL -> https://login.live.com/oauth20_desktop.srf

Select your permissions and Register App.

In case, you choose to register a web application, the Client ID and the Client Key are generated. Update these values in the web.config file.

The Client ID is used to identify the application (web or console) to the user whose permissions it's trying to access. The Client Key identifies the web application to the Azure Active Directory.

If you choose to register a Console Application, only the Client ID is generated.

Update the Client ID in the web.config file. It serves the same purpose as the Client ID returned while register web application.