Category: There was an error in the oauth popup window

07.12.2020 By Goltinris

There was an error in the oauth popup window

I am having an issue trying to create a dataflow from the Dynamics OData feed. When selecting Organisational credentials there's a brief flash of a popup window which disappears, followed by the error message "There was an error in the OAuth popup window". The window closes before I get a chance to do anything more than copy the URL, then I get the error mentioned.

Go to Solution. I test with other type of odata feed and it works I'd like to suggest you open a support ticket to get better support from power bi team. View solution in original post. Can you please share more detail information to help us clarify your scenario?

I cannot see any option to obtain a detailed error message beyond what I have already supplied. Here is a screenshot:. We have found a workaround - the OAuth popup does not error if logged in to Power BI with a different account to the one to be used for authentication, and using Google Chrome only.

This seems like a bug? We have found a workaround - we can authenticate so long as we use a different account for the Power BI service login and D Authentication, using Chrome. Turn on suggestions. Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for. Search instead for. Did you mean:. All forum topics Previous Topic Next Topic. Dataflow OData unable to enter OAuth credentials popup error.

Has anyone found a solution to this issue? Labels: Dataflow Need Help.An extension can support one or more kinds of Authentication. Each authentication kind is a different type of credential. The authentication UI displayed to end users in Power Query is driven by the type of credential s that an extension supports. The list of supported authentication types is defined as part of an extension's Data Source Kind definition.

Each Authentication value is a record with specific fields. The table below lists the expected fields for each kind. All fields are required unless marked otherwise. The sample below shows the Authentication record for a connector that supports OAuth, Key, Windows, Basic Username and Passwordand anonymous credentials.

Handling Authentication

The current credentials can be retrieved using the Extension. CurrentCredential function. M data source functions that have been enabled for extensibility will automatically inherit your extension's credential scope. In most cases, you won't need to explicitly access the current credentials, however, there are exceptions, such as:.

The Extension. CurrentCredential function returns a record object.

there was an error in the oauth popup window

The fields it contains will be authentication type specific. See the table below for details. The OAuth authentication type allows an extension to implement custom logic for their service. To do this, an extension will provide functions for StartLogin returning the authorization URI to initiate the OAuth flow and FinishLogin exchanging the authorization code for an access token.

Extensions can optionally implement Refresh exchanging a refresh token for a new access token and Logout expiring the current refresh and access tokens functions as well. Power Query extensions are evaluated in applications running on client machines.GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub? Sign in to your account. I have from Authorizing in a popup or iframe. I am reaching but tried the following I need to close that window and pass the window. I assumed I do that with new CustomEvent. Just curious - does it have to be a window? Could it be a modal dialog? Not sure that will help Ultimately it will be a Material Dialog iframe?

Was trying to build up to the knowledge without being too specific. Currently when our site is on a phone and that tab is not visible, after an amount of time a user is no longer logged in. Need their state preserved and a dialog to indicate need to log back in. It certainly works in that I can have a popup that shows the auth window, but then it's not clear what to do after successful sign in in the popup window.

Do we need to push an event back to the parent? How do we have the parent pick up that the login was successful? Hi profet23 you need to replace the old tokens.

there was an error in the oauth popup window

This should be automatic is you use the authorize function.I am attempting to create a dataflow to a SharePoint Online list. I have tried this with IE11, Edge, and Chrome and get the same result. I disabled the pop-up blocker for all three browsers and enable 3rd party cookies. If I open a second window, I can successfully log into SharePoint online. I can also successfully log into Power BI with my Pro license.

Go to Solution. View solution in original post. If this doesn't provide a valid solution for your scenario, you could try clear browsing data, then sign in again. You could try to connect to the data source with Power BI Desktop to check if it is correct way. Turn on suggestions. Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type. Showing results for. Search instead for. Did you mean:. All forum topics Previous Topic Next Topic.

Anonymous Not applicable. Any idea how I can get past this login issue? Regards, Randy Solved! Labels: Need Help. Everyone's tags 3 : Authorization. Message 1 of 3. Accepted Solutions. I already tried the links you provided. In a second tab I launched Power BI and attempted to create the dataflow. I was then able to create the dataflow. I didn't try clearing my cache.

Message 3 of 3. Message 2 of 3. Helpful resources. March Community Highlights Check out the full recap for the month! Read more. Read now. View All. Top Labels Alphabetical. Top Solution Authors.

User Count.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.

Finally, the server returns 'Error' or 'Success' so the popup will just have that in it. Now on the Angular side I have this running. This works sometimes and other times it fails. I also reuse this code for other Oauth providers, such as Dropbox. Sometimes it works and sometimes it doesn't. Any idea why? Well I couldn't figure it out by using a popup.

However, I was able to over come this problem by just having the oauth page open in the same page and redirect back to the page I wanted the user on afterwards. Also, there are libraries provided by google that open it for you in a popup and handle the closing. Learn more. Asked 4 years, 1 month ago. Active 4 years, 1 month ago.

Viewed times. MAhsan MAhsan 1 1 gold badge 5 5 silver badges 11 11 bronze badges. Active Oldest Votes. Sign up or log in Sign up using Google. Sign up using Facebook.

Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Featured on Meta. Feedback on Q2 Community Roadmap. Technical site integration observational experiment live on Stack Overflow.

Known issues on Internet Explorer and Microsoft Edge browsers (MSAL.js)

Question Close Updates: Phase 1. Dark Mode Beta - help us root out low-contrast and un-converted bits. Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled.GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account. I'm having an issue with Oauth2 for odata feed to a custom connector and adding it to PowerBI Gateway. The connector appears as a source on the manage gateway - however, when i edit credentials I enter the adfs creds once, the login window closes, but then the Authentication Mothod - Signin window is still there. I have implemented the TestConnection, however, I'm currently unsure where I should be looking for logs to see why something is failing - will it be in the PowerBI web interface for this or the gatway server?

I'm getting a little further, but now when I click "Add" after the creds have been entered and the pop up window closes, I get the below. From PowerBI desktop it connects ok. Unable to connect: We encountered an error while trying to connect to. Details: "We could not register this data source for any gateway instances within this cluster. Please find more details below about specific errors for each gateway instance. This turned out to be a few things: The test method wasn't the same as the main data get method, even though was shared SSL cert wasn't trusted - even though in local machine certs for the gateway server.

Another issue is if you pass parameters to your Data Connector, you must also do so for TestConnection, otherwise you will get an error; this is rather an insidious problem, as it does not manifest itself in Desktop, only in the published Power BI service, where it uses TestConnection, before each refresh, as I understand.

Since parameter values are external, by definition, you will have to somehow pick values for TestConnection that always work.

Problem with Windows Live Mail.

Similarly, you will have a problem if you change the name of the shared function exposed to Power BI, but do not also change the reference to it in TestConnection. In the screenshot below, from this repository, you can see the shared function MyGraph. Feed has no parameters.

there was an error in the oauth popup window

I keep encountering this same issue. Although both causes mentioned above do not apply. Custom Connector works fine in Desktop but after the Oath flow the login window stays open, nothing happens I am encountering the same issue. My custom connector works almost fine for Power BI Desktop, but it seams because of the Oauth2 it doesn't work from the gateway.

Has anyone managed to get a custom connector for MS Graph working on the gateway? Do you have any hints for me or how to recode the connector to get it working? I am grateful for any advice! I am currently working on this with MS help. I will report back whenever I know more … watch this space. I stumbled on a similar issue where the login seems to succeed but the credentials dialog doesn't go away.

According to documentation I've however set the redirect url to oauth. After changing my redirect url to preview. You can also see that the window is now forwarded to app. I think MS may need to update their code to use the corresponding redirect Uri used in the connector preview or oauth. We've been trying to figure out a better solution here, but at this point we don't have one.

Other than using a web app, another option is for you to setup a separate web service that acts as a proxy to Graph. So that you need to grant access to every local machine, but since most scenarios might use an enterprise connector, this wouldn't be an issue.

I'm not a developer so at this point I'm a little bit lost.It tries to open the pop up, and just instantly closes after a second. I tried in both Chrome and Edge. It keeps going back to this screen below? I can't reproduce your scenario, SharePoint online list works well to create dataflow.

Can you please share some detail information to help us clarify your scenario? We met with MS support and stepped through each line of the M script. So we were getting prompted for credentials on some non-data source lines of the code. Hope that makes sense. Which seemed a bit strange. How did you create your dataflow? Invoke multiple databases and merge in the same query table or get data from different databases to create query tables and merge them in a new 'blank query' table?

I'd like to suggest test the second one if you are working with scenario 1. Using computed entities on Power BI Premium. Turn on suggestions. Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for. Search instead for. Did you mean:. All forum topics Previous Topic Next Topic. Any help is appreciated, Jim. Labels: Need Help. Message 1 of 5. Message 2 of 5. Message 3 of 5. Message 4 of 5. Message 5 of 5. Helpful resources. March Community Highlights Check out the full recap for the month! Read more.

Read now.